Define type of maxMultiplicity in fromAdjacencyList()