I need to create an adjacency matrix with graphs vertexes represented as facts: e.g.
graph(a,b).
graph(c,c).
graph(b,c).
I'll need to output the matrix:
0 1 0
0 0 1
0 0 1
I know I should make a list for each line, but problems arise when they're symbols, not numbers, so I don't have any idea how to know the size of that list (if for example there's a graph(e,f). the list must be six numbers long so the f can fit). I don't want the full answer, if you just want to tell me a sketch of what to do, I suppose I'll be fine.