Loading...
Searching...
No Matches

Class is used for storing graph edge. More...

#include <com/navigine/idl/objc/NCGraphEdge.h>

Inherits NSObject.

Properties

NSNumber * weight
 Edge weight.
 
int32_t dst
 Destination vertex id GraphVertex.
 
int32_t src
 Source vertex id GraphVertex.
 
NSNumber * weightCoef
 Edge weight coefficient.
 
BOOL valid
 

Detailed Description

Class is used for storing graph edge.

Definition at line 17 of file NCGraphEdge.h.

Property Documentation

◆ dst

- (int32_t) dst
readnonatomicassign

Destination vertex id GraphVertex.

Swift code snippet:

// Get destination vertex ID
let dst = edge.getDst()
print("Edge destination ID: \‍(dst)")

Objective C code snippet:

// Get destination vertex ID
int32_t dst = [edge getDst];
NSLog(@"Edge destination ID: %d", dst);

Definition at line 47 of file NCGraphEdge.h.

◆ src

- (int32_t) src
readnonatomicassign

Source vertex id GraphVertex.

Swift code snippet:

// Get source vertex ID
let src = edge.getSrc()
print("Edge source ID: \‍(src)")

Objective C code snippet:

// Get source vertex ID
int32_t src = [edge getSrc];
NSLog(@"Edge source ID: %d", src);

Definition at line 62 of file NCGraphEdge.h.

◆ valid

- (BOOL) valid
readnonatomicassign

Tells if this object is valid or not. Any method called on an invalid object will throw an exception. The object becomes invalid only on UI thread, and only when its implementation depends on objects already destroyed by now.

Definition at line 85 of file NCGraphEdge.h.

◆ weight

- (NSNumber*) weight
readnonatomicassign

Edge weight.

Swift code snippet:

// Get edge weight
let weight = edge.getWeight()
print("Edge weight: \‍(weight)")

Objective C code snippet:

// Get edge weight
float weight = [edge getWeight];
NSLog(@"Edge weight: %f", weight);

Definition at line 32 of file NCGraphEdge.h.

◆ weightCoef

- (NSNumber*) weightCoef
readnonatomicassign

Edge weight coefficient.

Swift code snippet:

// Get edge weight coefficient
let weightCoef = edge.getWeightCoef()
print("Edge weight coefficient: \‍(weightCoef)")

Objective C code snippet:

// Get edge weight coefficient
int32_t weightCoef = [edge getWeightCoef];
NSLog(@"Edge weight coefficient: %d", weightCoef);

Definition at line 77 of file NCGraphEdge.h.


The documentation for this class was generated from the following file: