Class AreaGraph
A graph of connected areas.
Syntax
public class AreaGraph : IMutableUndirectedGraph<Area, AreaGraphEdge>, IUndirectedGraph<Area, AreaGraphEdge>, IImplicitUndirectedGraph<Area, AreaGraphEdge>, IMutableVertexAndEdgeSet<Area, AreaGraphEdge>, IMutableVertexSet<Area>, IMutableEdgeListGraph<Area, AreaGraphEdge>, IEdgeListGraph<Area, AreaGraphEdge>, IEdgeSet<Area, AreaGraphEdge>, IVertexSet<Area>, IImplicitVertexSet<Area>, IMutableGraph<Area, AreaGraphEdge>, IGraph<Area, AreaGraphEdge>, ICloneable
Properties
AllowParallelEdges
Declaration
public bool AllowParallelEdges { get; }
Property Value
EdgeCount
Declaration
public int EdgeCount { get; }
Property Value
EdgeEqualityComparer
Declaration
public EdgeEqualityComparer<Area> EdgeEqualityComparer { get; }
Property Value
Type |
Description |
EdgeEqualityComparer<Area> |
|
Edges
Declaration
public IEnumerable<AreaGraphEdge> Edges { get; }
Property Value
IsDirected
Declaration
public bool IsDirected { get; }
Property Value
IsEdgesEmpty
Declaration
public bool IsEdgesEmpty { get; }
Property Value
IsVerticesEmpty
Declaration
public bool IsVerticesEmpty { get; }
Property Value
VertexCount
Declaration
public int VertexCount { get; }
Property Value
Vertices
Declaration
public IEnumerable<Area> Vertices { get; }
Property Value
Methods
AddEdge(AreaGraphEdge)
Declaration
public bool AddEdge(AreaGraphEdge edge)
Parameters
Returns
AddEdgeRange(IEnumerable<AreaGraphEdge>)
Declaration
public int AddEdgeRange(IEnumerable<AreaGraphEdge> edges)
Parameters
Returns
AddVertex(Area)
Declaration
public bool AddVertex(Area vertex)
Parameters
Type |
Name |
Description |
Area |
vertex |
|
Returns
AddVertexRange(IEnumerable<Area>)
Declaration
public int AddVertexRange(IEnumerable<Area> vertices)
Parameters
Returns
AddVerticesAndEdge(AreaGraphEdge)
Declaration
public bool AddVerticesAndEdge(AreaGraphEdge edge)
Parameters
Returns
AddVerticesAndEdgeRange(IEnumerable<AreaGraphEdge>)
Declaration
public int AddVerticesAndEdgeRange(IEnumerable<AreaGraphEdge> edges)
Parameters
Returns
AdjacentDegree(Area)
Declaration
public int AdjacentDegree(Area vertex)
Parameters
Type |
Name |
Description |
Area |
vertex |
|
Returns
AdjacentEdge(Area, int)
Declaration
public AreaGraphEdge AdjacentEdge(Area vertex, int index)
Parameters
Type |
Name |
Description |
Area |
vertex |
|
int |
index |
|
Returns
AdjacentEdges(Area)
Declaration
public IEnumerable<AreaGraphEdge> AdjacentEdges(Area vertex)
Parameters
Type |
Name |
Description |
Area |
vertex |
|
Returns
Clear()
Declaration
ClearAdjacentEdges(Area)
Declaration
public void ClearAdjacentEdges(Area vertex)
Parameters
Type |
Name |
Description |
Area |
vertex |
|
Clone()
Declaration
Returns
ContainsEdge(Area, Area)
Declaration
public bool ContainsEdge(Area source, Area target)
Parameters
Type |
Name |
Description |
Area |
source |
|
Area |
target |
|
Returns
ContainsEdge(AreaGraphEdge)
Declaration
public bool ContainsEdge(AreaGraphEdge edge)
Parameters
Returns
ContainsVertex(Area)
Declaration
public bool ContainsVertex(Area vertex)
Parameters
Type |
Name |
Description |
Area |
vertex |
|
Returns
IsAdjacentEdgesEmpty(Area)
Declaration
public bool IsAdjacentEdgesEmpty(Area vertex)
Parameters
Type |
Name |
Description |
Area |
vertex |
|
Returns
RemoveAdjacentEdgeIf(Area, EdgePredicate<Area, AreaGraphEdge>)
Declaration
public int RemoveAdjacentEdgeIf(Area vertex, EdgePredicate<Area, AreaGraphEdge> predicate)
Parameters
Returns
RemoveEdge(AreaGraphEdge)
Declaration
public bool RemoveEdge(AreaGraphEdge edge)
Parameters
Returns
RemoveEdgeIf(EdgePredicate<Area, AreaGraphEdge>)
Declaration
public int RemoveEdgeIf(EdgePredicate<Area, AreaGraphEdge> predicate)
Parameters
Returns
RemoveVertex(Area)
Declaration
public bool RemoveVertex(Area vertex)
Parameters
Type |
Name |
Description |
Area |
vertex |
|
Returns
RemoveVertexIf(VertexPredicate<Area>)
Declaration
public int RemoveVertexIf(VertexPredicate<Area> predicate)
Parameters
Type |
Name |
Description |
VertexPredicate<Area> |
predicate |
|
Returns
TryGetEdge(Area, Area, out AreaGraphEdge)
Declaration
public bool TryGetEdge(Area source, Area target, out AreaGraphEdge edge)
Parameters
Returns
Events
EdgeAdded
Declaration
public event EdgeAction<Area, AreaGraphEdge> EdgeAdded
Event Type
EdgeRemoved
Declaration
public event EdgeAction<Area, AreaGraphEdge> EdgeRemoved
Event Type
VertexAdded
Declaration
public event VertexAction<Area> VertexAdded
Event Type
Type |
Description |
VertexAction<Area> |
|
VertexRemoved
Declaration
public event VertexAction<Area> VertexRemoved
Event Type
Type |
Description |
VertexAction<Area> |
|
Implements
QuikGraph.IMutableUndirectedGraph<TVertex, TEdge>
QuikGraph.IUndirectedGraph<TVertex, TEdge>
QuikGraph.IImplicitUndirectedGraph<TVertex, TEdge>
QuikGraph.IMutableVertexAndEdgeSet<TVertex, TEdge>
QuikGraph.IMutableVertexSet<TVertex>
QuikGraph.IMutableEdgeListGraph<TVertex, TEdge>
QuikGraph.IEdgeListGraph<TVertex, TEdge>
QuikGraph.IEdgeSet<TVertex, TEdge>
QuikGraph.IVertexSet<TVertex>
QuikGraph.IImplicitVertexSet<TVertex>
QuikGraph.IMutableGraph<TVertex, TEdge>
QuikGraph.IGraph<TVertex, TEdge>