Class Edge

java.lang.Object
com.thomas.graphs.Weighted.Edge

public class Edge extends Object
A simple Edge class for weighted graphs
See Also:
  • Field Details

    • tragetVertex

      public Vertex tragetVertex
      The target vertex
    • weight

      public int weight
      The weight of the edges
  • Constructor Details

    • Edge

      public Edge(Vertex target, int weight)
      Creates an edge to another vertex
      Parameters:
      target - The target vertex
      weight - The weight to the target