NSSAC / graph-plot

Contains the graph-plot functionality for net.science.
0 stars 0 forks source link

Color Options #8

Open hcars opened 3 years ago

hcars commented 3 years ago

Currently, we have a color flag that colors nodes by community. There should be option to have nodes colored by community, users to feed in a custom coloring that specifies the color by node ID, or set the color for all nodes.

The first option already exists. I would like to alter the behavior, so if community contraction is run, colors will be used by based on the cluster found for the contraction.

If we all users to set the color of each node by ID, what kind of data file would be good? Does this feature seem desirable at all? @ssravi-1984 @cckuhlman @Lucaslhm

As for setting the color for all nodes, I will set this up soon.

cckuhlman commented 3 years ago

In this statement:

"There should be option to have nodes colored by community, users to feed in a custom coloring that specifies the color by node ID, or set the color for all nodes."

and specifically this "... users to feed in a custom coloring that specifies the color by node ID ...", this means that the node ID is the node that represents a community?

If so, then I think this is useful. Not for large graphs, of say, 100s of nodes or larger, but rather for smaller graphs. Like a graph used in a presentation that may have 15 or ten nodes.

What do you think?

hcars commented 3 years ago

In this statement:

"There should be option to have nodes colored by community, users to feed in a custom coloring that specifies the color by node ID, or set the color for all nodes."

and specifically this "... users to feed in a custom coloring that specifies the color by node ID ...", this means that the node ID is the node that represents a community?

If so, then I think this is useful. Not for large graphs, of say, 100s of nodes or larger, but rather for smaller graphs. Like a graph used in a presentation that may have 15 or ten nodes.

What do you think?

Ah, I was meaning the user specifies some mapping with node ID -> color, and coloring is based on this.

cckuhlman commented 3 years ago

Yes, nice. Thanks for the clarification.