Open arademaker opened 6 years ago
ok, maybe related to #8
But what is the best alternative to customize the edges label? How can I setup the edge's label during the graph construction?
I'll try to look at this this weekend.
So it's been a long time and I'm not sure about the best fix but the problem is that the graph you use for graph->dot must be a subclass of a dot-graph:
(defclass* dot-graph (dot-graph-mixin graph-container)
()
(:export-p t))```
So _I_ think if you use this graph type, you'll be all set.
@gwkkwg thank you. But I am still trying to figure out what is the best way to use the lib. I imagine that I should make my classes (sentence and token) subclasses of graph and vertex, right ?
Yes, making subclasses is the thing to do. (Sorry for the delay)
I just ran into this same issue. Y'all should update the guide, it's super misleading since it's the only example.
I am trying to use cl-graph with https://github.com/own-pt/cl-conllu library. This library read conllu files (http://universaldependencies.org/format.html -- with a sentence tokenized). The library implements a class for a sentence that contains tokens (another class).
The first part works:
But it seems the problem is with the edges when I try:
I got
What did I miss?