vertices.add(v);
}
int i = 0;
for (List<Integer> line : input) {
Edge edge = new DirectedEdge(i++ ,vertices.get(line.get(0) - 1), vertices.get(line.get(1) - 1), line.get(2), line.get(3));
edges.add(edge);
}
graph.addVertices(vertices);
graph.addEdges(edges);