Package | Description |
---|---|
mas.agentsHempelsSofa.data.graph |
This package contains data structures to define a graph.
|
Modifier and Type | Method and Description |
---|---|
Edge |
Graph.add(Edge edge)
Adds an
edge to the graph. |
Edge |
Graph.add(eis.iilang.Parameter param1,
eis.iilang.Parameter param2)
Adds a new edge to the graph, whereas the edge is built by two new
vertices which are created by
param1 and param2 . |
Edge |
Edge.clone() |
static Edge |
Util.generateRandomEdge(Graph graph,
boolean surveyed)
Generates a random edge
|
Edge |
Graph.getEdge(Edge edge)
Returns the edge which equals
edge . |
Edge |
Graph.getEdge(eis.iilang.Parameter param1,
eis.iilang.Parameter param2) |
Edge |
Graph.getEdge(Vertex vertex1,
Vertex vertex2) |
static Edge |
Util.getRandomEdge(Graph graph)
Gets a random edge of a graph
|
Modifier and Type | Method and Description |
---|---|
LinkedList<Edge> |
Graph.getEdges() |
LinkedList<Edge> |
Vertex.getIncidentEdges() |
Modifier and Type | Method and Description |
---|---|
Edge |
Graph.add(Edge edge)
Adds an
edge to the graph. |
void |
Vertex.addIncidentEdge(Edge incidentEdge)
Immediately adds an incident edge to the vertex.
|
boolean |
Graph.contains(Edge edge) |
Edge |
Graph.getEdge(Edge edge)
Returns the edge which equals
edge . |
void |
Graph.setSurveyed(Edge e,
int weight) |
Modifier and Type | Method and Description |
---|---|
boolean |
Graph.containsAllEdges(Collection<Edge> edges) |
Copyright © 2013. All Rights Reserved.