Skip to content

Refactor: simplify API so that network_p2p() can handle community detection #38

@moralec

Description

@moralec

Currently the network visualizations that come from a p2p query are handled by a variety of functions. It would be best to have a single function (network_p2p) acting as a wrapper, with a range of visualization options as parameters (e.g. can color code nodes with both hr attributes or using a community detection algo)

For example:

Default behavior, displays network plot with nodes colored by Organization:

network_p2p(display="hrvar", hrvar="Organization", return="plot",  path=NULL)

Option to color code the nodes as a different hrvar:

network_p2p(display="hrvar", hrvar="LevelDesignation")

Option to color code the nodes using a Louvain community detection algorithm:

network_p2p(display="clusters", mode="louvain", return="plot")

Metadata

Metadata

Assignees

Labels

refactorCode that neither fixes a bug nor changes featurespikeenhancements that would take longer to implement

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions