Describe the bug
I'm unsure if this is a bug or intended behavior, but it seems like on 0.10.0 it isn't possible to mix directed and undirected components in motifs?
To Reproduce
Single undirected works as expected and finds the motif undirected
graph.find("(a)-[b]-(c)").show(10, truncate=False)
But adding an additional component fails:
graph.find("(a)-[b]-(c); (c)-[d]->(e)").show(10, truncate=False)
Throws:
Py4JJavaError: An error occurred while calling o295.find.
: org.graphframes.InvalidParseException: Failed to parse bad motif string: '(a)-[b]-(c); (c)-[d]->(e)'. Returned message: '->' expected but '-' found
at org.graphframes.pattern.Pattern$.parse(patterns.scala:83)
at org.graphframes.GraphFrame.findAugmentedPatterns(GraphFrame.scala:520)
at org.graphframes.GraphFrame.find(GraphFrame.scala:515)
Expected behavior
It should be possible to mix directed and undirected motif components.
System [please complete the following information]:
- OS: Mac OS 15.5
- Python Version (if applied): Python 3.11
- Spark / PySpark version: PySpark 3.5.6
- GraphFrames version:
io.graphframes:graphframes-spark3_2.12:0.10.0
Component
Are you planning on creating a PR?
Willing to help but may need some direction / guidance.
Describe the bug
I'm unsure if this is a bug or intended behavior, but it seems like on 0.10.0 it isn't possible to mix directed and undirected components in motifs?
To Reproduce
Single undirected works as expected and finds the motif undirected
But adding an additional component fails:
Throws:
Expected behavior
It should be possible to mix directed and undirected motif components.
System [please complete the following information]:
io.graphframes:graphframes-spark3_2.12:0.10.0Component
Are you planning on creating a PR?
Willing to help but may need some direction / guidance.