Class ContractedDb
Represents a contracted graph.
Inheritance
System.Object
ContractedDb
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public class ContractedDb
Constructors
ContractedDb(DirectedDynamicGraph)
Creates a new edge-based contracted db.
Declaration
public ContractedDb(DirectedDynamicGraph edgeBasedGraph)
Parameters
|
DirectedDynamicGraph
edgeBasedGraph
|
ContractedDb(DirectedMetaGraph, Boolean)
Creates a new node-based contracted db.
Declaration
public ContractedDb(DirectedMetaGraph nodeBasedGraph, bool isEdgeBased)
Parameters
|
DirectedMetaGraph
nodeBasedGraph
|
|
System.Boolean
isEdgeBased
|
Properties
EdgeBasedGraph
Gets the edge-based graph if any.
Declaration
public DirectedDynamicGraph EdgeBasedGraph { get; }
Property Value
|
DirectedDynamicGraph
|
HasEdgeBasedGraph
Returns true if this contracted db is edge-based.
Declaration
public bool HasEdgeBasedGraph { get; }
Property Value
|
System.Boolean
|
HasNodeBasedGraph
Returns true if this contracted db is node-based.
Declaration
public bool HasNodeBasedGraph { get; }
Property Value
|
System.Boolean
|
NodeBasedGraph
Gets the node-based graph if any.
Declaration
public DirectedMetaGraph NodeBasedGraph { get; }
Property Value
|
DirectedMetaGraph
|
NodeBasedIsEdgedBased
Returns true if the node-based graph is actually edge-based.
Declaration
public bool NodeBasedIsEdgedBased { get; }
Property Value
|
System.Boolean
|
Methods
Deserialize(Stream, ContractedDbProfile)
Deserializes contraction data from the given stream.
Declaration
public static ContractedDb Deserialize(Stream stream, ContractedDbProfile profile)
Parameters
|
Stream
stream
|
|
ContractedDbProfile
profile
|
Returns
|
ContractedDb
|
Serialize(Stream, Boolean)
Serializes the given contraction data
Declaration
public long Serialize(Stream stream, bool toReadonly)
Parameters
|
Stream
stream
|
|
System.Boolean
toReadonly
|
Returns
|
System.Int64
|