/** * Constructs a graph instance. * * @param edges An instance of UnweightedEdgeCollectionBase * that will store edges for this graph. * @param graph A graph from which to copy the vertices. */ protected WeightedGraphBase(WeightedEdgeCollectionBase edges, WeightedGraphBase <VertexT> graph) : base(edges, graph) { }
/** * Constructs a graph instance. * * @param edges An instance of WeightedEdgeCollectionBase * that will store edges for this graph. * @param initial_capacity Determines how much memory to reserve at * construction time. The larger this value * the fewer time the underlying collections * will have to be resized as the graph grows. * * @throws ArgumentException if initial_capacity is negative or zero. */ protected WeightedGraphBase(WeightedEdgeCollectionBase edges, int initial_capacity = 10) : base(edges, initial_capacity) { }