Convert string representation of a graph to adjacency matrix representation

前端 未结 0 560
南旧
南旧 2020-12-01 02:11

I am looking for a way to represent a graph in adjacency matrix format from a string user standard input of the following format:

“[A,B,3] [B,C,5] [C,D,2]”


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题