Class AreaGraph
A graph of connected areas.
Inheritance
object
AreaGraph
Implements
QuikGraph.IMutableVertexSet<TVertex><
Area>
QuikGraph.IVertexSet<TVertex><
Area>
QuikGraph.IImplicitVertexSet<TVertex><
Area>
System.ICloneable
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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 |
QuikGraph.EdgeEqualityComparer<TVertex><Area> |
|
Edges
Declaration
public IEnumerable<AreaGraphEdge> Edges { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<T><AreaGraphEdge> |
|
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
Type |
Description |
System.Collections.Generic.IEnumerable<T><Area> |
|
Methods
AddEdge(AreaGraphEdge)
Declaration
public bool AddEdge(AreaGraphEdge edge)
Parameters
Returns
AddEdgeRange(IEnumerable<AreaGraphEdge>)
Declaration
public int AddEdgeRange(IEnumerable<AreaGraphEdge> edges)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<T><AreaGraphEdge> |
edges |
|
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
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<T><Area> |
vertices |
|
Returns
AddVerticesAndEdge(AreaGraphEdge)
Declaration
public bool AddVerticesAndEdge(AreaGraphEdge edge)
Parameters
Returns
AddVerticesAndEdgeRange(IEnumerable<AreaGraphEdge>)
Declaration
public int AddVerticesAndEdgeRange(IEnumerable<AreaGraphEdge> edges)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<T><AreaGraphEdge> |
edges |
|
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
Type |
Description |
System.Collections.Generic.IEnumerable<T><AreaGraphEdge> |
|
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
Type |
Name |
Description |
QuikGraph.EdgePredicate<TVertex, TEdge><Area, AreaGraphEdge> |
predicate |
|
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 |
QuikGraph.VertexPredicate<TVertex><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 |
QuikGraph.VertexAction<TVertex><Area> |
|
VertexRemoved
Declaration
public event VertexAction<Area> VertexRemoved
Event Type
Type |
Description |
QuikGraph.VertexAction<TVertex><Area> |
|
Explicit Interface Implementations
ICloneable.Clone()
Declaration
object ICloneable.Clone()
Returns
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>
System.ICloneable