Class RoomGraph<TRoom>
Inheritance
System.Object
RoomGraph<TRoom>
Assembly: Edgar.dll
Syntax
public class RoomGraph<TRoom> : Object, IGraph<RoomNode<TRoom>>
Type Parameters
Constructors
RoomGraph(IGraph<RoomNode<TRoom>>)
Declaration
public RoomGraph(IGraph<RoomNode<TRoom>> originalGraph)
Parameters
Properties
Edges
Declaration
public IEnumerable<IEdge<RoomNode<TRoom>>> Edges { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<IEdge<RoomNode<TRoom>>> |
|
IsDirected
Declaration
public bool IsDirected { get; }
Property Value
Type |
Description |
System.Boolean |
|
Vertices
Declaration
public IEnumerable<RoomNode<TRoom>> Vertices { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<RoomNode<TRoom>> |
|
VerticesCount
Declaration
public int VerticesCount { get; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
AddEdge(RoomNode<TRoom>, RoomNode<TRoom>)
Declaration
public void AddEdge(RoomNode<TRoom> from, RoomNode<TRoom> to)
Parameters
AddVertex(RoomNode<TRoom>)
Declaration
public void AddVertex(RoomNode<TRoom> vertex)
Parameters
Type |
Name |
Description |
RoomNode<TRoom> |
vertex |
|
GetNeighbours(RoomNode<TRoom>)
Declaration
public IEnumerable<RoomNode<TRoom>> GetNeighbours(RoomNode<TRoom> vertex)
Parameters
Type |
Name |
Description |
RoomNode<TRoom> |
vertex |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<RoomNode<TRoom>> |
|
HasEdge(RoomNode<TRoom>, RoomNode<TRoom>)
Declaration
public bool HasEdge(RoomNode<TRoom> from, RoomNode<TRoom> to)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements