Show / Hide Table of Contents

Class RoomGraph<TRoom>

Inheritance
System.Object
RoomGraph<TRoom>
Implements
IGraph<RoomNode<TRoom>>
Namespace: Edgar.GraphBasedGenerator.Common
Assembly: Edgar.dll
Syntax
public class RoomGraph<TRoom> : Object, IGraph<RoomNode<TRoom>>
Type Parameters
Name Description
TRoom

Constructors

RoomGraph(IGraph<RoomNode<TRoom>>)

Declaration
public RoomGraph(IGraph<RoomNode<TRoom>> originalGraph)
Parameters
Type Name Description
IGraph<RoomNode<TRoom>> originalGraph

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
Type Name Description
RoomNode<TRoom> from
RoomNode<TRoom> to

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
Type Name Description
RoomNode<TRoom> from
RoomNode<TRoom> to
Returns
Type Description
System.Boolean

Implements

IGraph<T>
Back to top Generated by DocFX