Skip to content

[FEA]: Provide better support for creating subgraphs from expression eval #5140

@rlratzel

Description

@rlratzel

(This feature request originates from this bug report, which was eventually not considered a bug)

PropertyGraph should have better support for selecting nodes (and possibly edges?) in the graph. Using the example in this bug report, we can see that users expect to be able to select nodes using a natural Python expression, but cannot always do so:

expression = "(v_prop in [1, 4, 5])"
selection = pG.select_vertices(expression)

which results in a traceback:

ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().

This request could be interpreted as simply supporting the above example, but perhaps there's a better solution for users needing to operate on subgraphs of their larger, heterogeneous graphs (which is what PropertyGraph supports) using other solutions (eg. a graph database interface that allows for more sophisticated queries with results that can be easily operated on using cugraph). This issue tracks supporting use cases like this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions