#include <Graph.h>
It connects to vertices together and can store any data.
Definition at line 22 of file Graph.h.
Public Member Functions | |
void * | GetData () |
Returns the data stored in the edge. | |
Vertex * | GetFromVertex () |
Returns the vertex where the edge starts. | |
Vertex * | GetToVertex () |
Returns the vertex where the edge ends. | |
void | SetData (void *data) |
Sets any data to be stored in the edge. | |
Private Member Functions | |
Edge (class Graph *Graph, Vertex *FromVertex, Vertex *ToVertex) | |
Creates a new edge. | |
virtual | ~Edge () |
Destroys the edge. | |
Private Attributes | |
friend | ArrayList<Edge> |
friend | ArrayList<Vertex> |
void * | Data |
Any application's data to store in the edge. | |
friend | Edge |
friend | EdgeArray |
Vertex * | FromVertex |
The vertex where the edge starts. | |
Graph * | Graph |
The graph the edge belongs to. | |
friend | Graph |
Vertex * | ToVertex |
The vertex where the edge ends. | |
friend | Vertex |
friend | VertexArray |
double | Weight |
A weight information for the edge. |
|
Creates a new edge.
|
|
Destroys the edge.
|
|
Returns the data stored in the edge.
|
|
Returns the vertex where the edge starts.
|
|
Returns the vertex where the edge ends.
|
|
Sets any data to be stored in the edge.
|
|
|
|
|
|
Any application's data to store in the edge.
|
|
|
|
|
|
The vertex where the edge starts.
|
|
The graph the edge belongs to.
|
|
|
|
The vertex where the edge ends.
|
|
|
|
|
|
A weight information for the edge.
|