Specification FileadjacencyListGragh class GeneralGraph:use adjacency list to implement the graph which data structure is vectorConstruct methods:* public GeneralGraph(): contain an empty vector store the vertex and a boolean determines whether graph is directed or not, defaulted is undirected
猜您喜欢
评论