Skip to content

Allow adding (style) configurations for a given item set or single items particularly #9

Open
@fskpf

Description

@fskpf

The current API makes it easy to style nodes/relationships based on their label/type.

This approach falls short when trying to style items across labels/type (and maybe only some of those labels/items). Think about a path that crosses single nodes/relationships of different types. There is no easy way to highlight this path then.

Maybe we could add something like

add_node_configuration(<cypher-query>, configuration)

Which is then applied to the set of nodes (same for relationships).

Not sure if the query approach would work well here. We would need to make sure to only query nodes that are already in the result of show_cypher, or would it be a good idea to potentially run the query against the entire database and just load those items as well?

Activity

yGuy

yGuy commented on Oct 18, 2024

@yGuy
Member

I guess this could be done with some cypher magic, where you "embed" that information into the query result.
It should be possible to yield nodes that have "properties" which are computed, live. Just like it is possible to create virtual nodes and relationships.

I don't like adding a cypher query as configuration. We could however let the user modify the data, before it gets visualized. So instead of passing in a query, allow the user to pass in a neo4j graph (or graph-like object) and then just modify the values in memory before visualizing them?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Allow adding (style) configurations for a given item set or single items particularly · Issue #9 · yWorks/yfiles-jupyter-graphs-for-neo4j