Struct DirectedEdgeId
Represents a directed edge id.
Inherited Members
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public struct DirectedEdgeId
Constructors
DirectedEdgeId(Int64)
Creates a new directed id.
Declaration
public DirectedEdgeId(long directedEdgeId)
Parameters
System.Int64
directedEdgeId
|
DirectedEdgeId(UInt32, Boolean)
Creates a new directed id.
Declaration
public DirectedEdgeId(uint edgeId, bool forward)
Parameters
System.UInt32
edgeId
|
System.Boolean
forward
|
Fields
NO_EDGE
Gets a direcred edge id that represents no edge.
Declaration
public static DirectedEdgeId NO_EDGE
Field Value
DirectedEdgeId
|
Raw
The raw value, not be confused with an undirected id!
Declaration
public uint Raw
Field Value
System.UInt32
|
Properties
EdgeId
Gets the undirected edge id.
Declaration
public uint EdgeId { get; }
Property Value
System.UInt32
|
Forward
Returns true if this edge is forward.
Declaration
public bool Forward { get; }
Property Value
System.Boolean
|
IsNoEdge
Returns true if this edge represents no edge..
Declaration
public bool IsNoEdge { get; }
Property Value
System.Boolean
|
Reverse
Gets the reverse edge id.
Declaration
public DirectedEdgeId Reverse { get; }
Property Value
DirectedEdgeId
|
SignedDirectedId
Returns the equivalent signed directed id.
Declaration
public long SignedDirectedId { get; }
Property Value
System.Int64
|
Methods
Equals(DirectedEdgeId)
Returns true if the given object represents the same edge.
Declaration
public bool Equals(DirectedEdgeId obj)
Parameters
DirectedEdgeId
obj
|
Returns
System.Boolean
|
Equals(Object)
Returns true if the given object represents the same edge.
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
|
Returns
System.Boolean
|
Overrides
FromRaw(UInt32)
Creates a directed edge id structure.
Declaration
public static DirectedEdgeId FromRaw(uint rawDirectedEdgeId)
Parameters
System.UInt32
rawDirectedEdgeId
|
Returns
DirectedEdgeId
|
GetHashCode()
Gets a hashcode.
Declaration
public override int GetHashCode()
Returns
System.Int32
|
Overrides
ReverseRaw(UInt32)
Reverse the raw id.
Declaration
public static uint ReverseRaw(uint id)
Parameters
System.UInt32
id
|
Returns
System.UInt32
|
ToString()
Gets a description of this id.
Declaration
public override string ToString()
Returns
System.String
|
Overrides
Operators
Equality(DirectedEdgeId, DirectedEdgeId)
Overloads the == operator to avoid boxing/unboxing equals.
Declaration
public static bool operator ==(DirectedEdgeId edge1, DirectedEdgeId edge2)
Parameters
DirectedEdgeId
edge1
|
DirectedEdgeId
edge2
|
Returns
System.Boolean
|
Inequality(DirectedEdgeId, DirectedEdgeId)
Overloads the != operator to avoid boxing/unboxing equals.
Declaration
public static bool operator !=(DirectedEdgeId edge1, DirectedEdgeId edge2)
Parameters
DirectedEdgeId
edge1
|
DirectedEdgeId
edge2
|
Returns
System.Boolean
|