public class OverlayGraph extends Object implements Serializable
Constructor and Description |
---|
OverlayGraph()
Create an empty OverlayGraph.
|
OverlayGraph(Graph g)
Copy contents of a Graph into this OverlayGraph
|
Modifier and Type | Method and Description |
---|---|
void |
addEdge(Edge e) |
void |
addIncoming(Vertex tov,
Edge e) |
void |
addOutgoing(Vertex fromv,
Edge e) |
boolean |
containsVertex(Vertex vertex) |
int |
countEdges()
A single edge can appear once or twice.
|
int |
countVertices()
A single Vertex can appear once or twice.
|
int |
getDegreeIn(Vertex v) |
int |
getDegreeOut(Vertex v) |
List<Edge> |
getIncoming(Vertex v) |
List<Edge> |
getOutgoing(Vertex v) |
Collection<Vertex> |
getVertices()
A single Vertex can appear once or twice.
|
void |
removeEdge(Edge e) |
void |
removeIncoming(Vertex tov,
Edge e) |
void |
removeOutgoing(Vertex fromv,
Edge e) |
void |
removeVertex(Vertex vertex) |
public OverlayGraph()
public OverlayGraph(Graph g)
public void addEdge(Edge e)
public void removeEdge(Edge e)
public int countEdges()
public Collection<Vertex> getVertices()
public int countVertices()
public void removeVertex(Vertex vertex)
public int getDegreeIn(Vertex v)
public int getDegreeOut(Vertex v)
public boolean containsVertex(Vertex vertex)
Copyright © 2018. All rights reserved.