Class Graph
Represents the graph.
Inherited Members
Namespace: Platform.Protocols.Gexf
Assembly: Platform.Protocols.dll
Syntax
public class Graph
Constructors
| Improve this Doc View SourceGraph()
Initializes a new Graph instance.
Declaration
public Graph()
Fields
| Improve this Doc View SourceDefaultEdgeTypeAttributeName
The default edge type attribute name.
Declaration
public const string DefaultEdgeTypeAttributeName = "defaultedgetype"
Field Value
Type | Description |
---|---|
String |
EdgeElementName
The edge element name.
Declaration
public const string EdgeElementName = "edge"
Field Value
Type | Description |
---|---|
String |
EdgesElementName
The edges element name.
Declaration
public const string EdgesElementName = "edges"
Field Value
Type | Description |
---|---|
String |
ElementName
The element name.
Declaration
public static readonly string ElementName
Field Value
Type | Description |
---|---|
String |
ModeAttributeName
The mode attribute name.
Declaration
public const string ModeAttributeName = "mode"
Field Value
Type | Description |
---|---|
String |
NodeElementName
The node element name.
Declaration
public const string NodeElementName = "node"
Field Value
Type | Description |
---|---|
String |
NodesElementName
The nodes element name.
Declaration
public const string NodesElementName = "nodes"
Field Value
Type | Description |
---|---|
String |
Properties
| Improve this Doc View SourceDefaultEdgeType
Gets or sets the default edge type value.
Declaration
public GraphDefaultEdgeType DefaultEdgeType { get; set; }
Property Value
Type | Description |
---|---|
GraphDefaultEdgeType |
Edges
Gets or sets the edges value.
Declaration
public List<Edge> Edges { get; set; }
Property Value
Type | Description |
---|---|
List<Edge> |
Mode
Gets or sets the mode value.
Declaration
public GraphMode Mode { get; set; }
Property Value
Type | Description |
---|---|
GraphMode |
Nodes
Gets or sets the nodes value.
Declaration
public List<Node> Nodes { get; set; }
Property Value
Type | Description |
---|---|
List<Node> |
Methods
| Improve this Doc View SourceWriteXml(XmlWriter)
Writes the xml using the specified writer.
Declaration
public void WriteXml(XmlWriter writer)
Parameters
Type | Name | Description |
---|---|---|
XmlWriter | writer | The writer.
|
WriteXml(XmlWriter, Action, Action)
Writes the xml using the specified writer.
Declaration
public static void WriteXml(XmlWriter writer, Action writeNodes, Action writeEdges)
Parameters
Type | Name | Description |
---|---|---|
XmlWriter | writer | The writer.
|
Action | writeNodes | The write nodes.
|
Action | writeEdges | The write edges.
|
WriteXml(XmlWriter, Action, Action, GraphMode)
Writes the xml using the specified writer.
Declaration
public static void WriteXml(XmlWriter writer, Action writeNodes, Action writeEdges, GraphMode mode)
Parameters
Type | Name | Description |
---|---|---|
XmlWriter | writer | The writer.
|
Action | writeNodes | The write nodes.
|
Action | writeEdges | The write edges.
|
GraphMode | mode | The mode.
|
WriteXml(XmlWriter, Action, Action, GraphMode, GraphDefaultEdgeType)
Writes the xml using the specified writer.
Declaration
public static void WriteXml(XmlWriter writer, Action writeNodes, Action writeEdges, GraphMode mode, GraphDefaultEdgeType defaultEdgeType)
Parameters
Type | Name | Description |
---|---|---|
XmlWriter | writer | The writer.
|
Action | writeNodes | The write nodes.
|
Action | writeEdges | The write edges.
|
GraphMode | mode | The mode.
|
GraphDefaultEdgeType | defaultEdgeType | The default edge type.
|