Struct LineGraphBuilder.ProtoEdge
Prototype of an edge.
Namespace: AnyPath.Graphs.Line
Assembly: AnyPath.dll
Syntax
public struct LineGraphBuilder.ProtoEdge
Constructors
ProtoEdge(int, int, int, float, int, bool)
Declaration
public ProtoEdge(int a, int b, int id, float enterCost, int flags, bool directed = false)
Parameters
| Type | Name | Description |
|---|---|---|
| int | a | |
| int | b | |
| int | id | |
| float | enterCost | |
| int | flags | |
| bool | directed |
Fields
a
Id of node A
Declaration
public readonly int a
Field Value
| Type | Description |
|---|---|
| int |
b
Id of node B
Declaration
public readonly int b
Field Value
| Type | Description |
|---|---|
| int |
directed
Is the edge directed? That is, does it only go from A to B.
Declaration
public readonly bool directed
Field Value
| Type | Description |
|---|---|
| bool |
enterCost
Extra cost associated with this edge
Declaration
public readonly float enterCost
Field Value
| Type | Description |
|---|---|
| float |
flags
Flags associated with this edge
Declaration
public readonly int flags
Field Value
| Type | Description |
|---|---|
| int |
id
Optional Id given to the edge in the graph
Declaration
public readonly int id
Field Value
| Type | Description |
|---|---|
| int |