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]”