Edge - NoaAizer/Graphs GitHub Wiki

We implemented edge_data interface in Edge.

src - The source of the edge.
dest - The destination of the edge.
weight - The weight of the edge.
tag - Integer value that helps with algorithems.
info - String matadata that helps with algorithems.

Edge function:

  • Constructors- create a new Edge from the data parameters.
  • getSrc() - Returns the id of the source node of this edge.
  • getDest() - Returns the id of the destination node of this edge.
  • getWeight() - Returns the weight of this edge (positive value).
  • getInfo() - return the remark (meta data) associated with this edge.
  • setInfo - Allows changing the remark (meta data) associated with this edge.
  • getTag() - Temporal data (aka color: e,g, white, gray, black) which can be used be algorithms.
  • setTag - Allow setting the "tag" value for temporal marking an edge - common practice for marking by algorithms.
⚠️ **GitHub.com Fallback** ⚠️