You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hmm, I couldn't reproduce your problem, e.g. I get an edge correctly here:
val diagram = Diagram("""
+-------+
| op1 |
+-------+
|
|
----
|
v
+-----+
|gbk1 |
+-----+ """)
{
val boxes = diagram.allBoxes
val Some(op1) = boxes.find(_.text.contains("op1"))
val Some(gbk1) = boxes.find(_.text.contains("gbk1"))
val List(edge) = op1.edges
edge.hasArrow1 should be(false)
edge.hasArrow2 should be(true)
}
{
val graph = Graph.fromDiagram(diagram)
val Some(op1) = graph.vertices.find(_ contains ("op1"))
val Some(gbk1) = graph.vertices.find(_ contains ("gbk1"))
val List(edge) = graph.edges
edge should be ((op1, gbk1))
}
I think I have a bug with the diagram parsing. When I enter the following diagram:
Then the edge between
op1
andgbk1
doesn't have any arrow. This is a problem for me because I need to work with a directed graph.The text was updated successfully, but these errors were encountered: