Class GraphNode
Defines a graph node.
Inheritance
System.Object
System.Dynamic.DynamicObject
GraphNode
Inherited Members
System.Dynamic.DynamicObject.GetMetaObject(System.Linq.Expressions.Expression)
System.Dynamic.DynamicObject.TryBinaryOperation(System.Dynamic.BinaryOperationBinder, System.Object, System.Object)
System.Dynamic.DynamicObject.TryConvert(System.Dynamic.ConvertBinder, System.Object)
System.Dynamic.DynamicObject.TryCreateInstance(System.Dynamic.CreateInstanceBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryDeleteIndex(System.Dynamic.DeleteIndexBinder, System.Object[])
System.Dynamic.DynamicObject.TryDeleteMember(System.Dynamic.DeleteMemberBinder)
System.Dynamic.DynamicObject.TryGetIndex(System.Dynamic.GetIndexBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryInvoke(System.Dynamic.InvokeBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TrySetIndex(System.Dynamic.SetIndexBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryUnaryOperation(System.Dynamic.UnaryOperationBinder, System.Object)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Graphs
Assembly: Kephas.Core.dll
Syntax
public class GraphNode : Expando, IGraphNode, IExpando, IDynamicMetaObjectProvider, IIndexable
Constructors
| Improve this Doc View SourceGraphNode()
Initializes a new instance of the GraphNode class.
Declaration
public GraphNode()
Properties
| Improve this Doc View SourceConnectedEdges
Gets the connected edges.
Declaration
public IReadOnlyCollection<IGraphEdge> ConnectedEdges { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<IGraphEdge> | The connected edges. |
ConnectedNodes
Gets the connected nodes.
Declaration
public IReadOnlyCollection<IGraphNode> ConnectedNodes { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<IGraphNode> | The connected nodes. |
IncomingEdges
Gets the incoming nodes from this node.
Declaration
public IReadOnlyCollection<IGraphEdge> IncomingEdges { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<IGraphEdge> | The incoming edges. |
OutgoingEdges
Gets the outgoing edges from this node.
Declaration
public IReadOnlyCollection<IGraphEdge> OutgoingEdges { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<IGraphEdge> | The outgoing edges. |
Methods
| Improve this Doc View SourceAddConnectedEdge(IGraphEdge)
Adds a connected edge.
Declaration
protected virtual bool AddConnectedEdge(IGraphEdge edge)
Parameters
Type | Name | Description |
---|---|---|
IGraphEdge | edge | The edge. |
Returns
Type | Description |
---|---|
System.Boolean |
|
AddConnectedNode(IGraphNode)
Adds a connected node.
Declaration
protected virtual bool AddConnectedNode(IGraphNode node)
Parameters
Type | Name | Description |
---|---|---|
IGraphNode | node | The node. |
Returns
Type | Description |
---|---|
System.Boolean |
|
AddIncomingEdge(GraphEdge)
Adds an incoming edge.
Declaration
protected void AddIncomingEdge(GraphEdge edge)
Parameters
Type | Name | Description |
---|---|---|
GraphEdge | edge | The edge. |
AddOutgoingEdge(GraphEdge)
Adds an outgoing edge.
Declaration
protected void AddOutgoingEdge(GraphEdge edge)
Parameters
Type | Name | Description |
---|---|---|
GraphEdge | edge | The edge. |
Implements
System.Dynamic.IDynamicMetaObjectProvider