gephi / gephi/gephi-plugins

filter with regex match in scripting plugin

Open
#156 0 comments 0 reactions 0 assignees View on GitHub
python-scripting-plugin
Dominant language
No language data
Stars
292
Forks
645
PR merge metrics
No merged PRs in 30d

Description

I would like to use a regex for filtering from the script plugin. I have found that I can enable the regex matching after creating the filter using the following construct:

```
myfilter = someAttribute == "someregex"
myfilter.getUnderlyingQuery().filter.setUseRegex(True)
subgraph = g.filter(myfilter)
visible = subgraph
```

While this works, it seams a bit verbose and implementation specific to have to run the **myfilter.getUnderlyingQuery().filter.setUseRegex(True)** statement like that. Is there a better way I am failing to see?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.