Loading...
Searching...
No Matches

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

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

Inherits NSObject.

Properties

float weight
 Edge weight.
 
int32_t dst
 Destination vertex id GraphVertex.
 
int32_t src
 Source vertex id GraphVertex.
 
int32_t weightCoef
 Edge weight coefficient.
 

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 45 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 59 of file NCGraphEdge.h.

◆ weight

- (float) 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 31 of file NCGraphEdge.h.

◆ weightCoef

- (int32_t) 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 73 of file NCGraphEdge.h.


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