src/graph/Edge.js
/**
* Edge: represents an edge that can be added to a Graph instance.
*/
class Edge {
constructor(startVertex, endVertex){
this.startVertex = startVertex;
this.endVertex = endVertex;
}
}
export default Edge;
/**
* Edge: represents an edge that can be added to a Graph instance.
*/
class Edge {
constructor(startVertex, endVertex){
this.startVertex = startVertex;
this.endVertex = endVertex;
}
}
export default Edge;