-
-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We need a way to add attributes to vertex::group #39
Comments
I agree that it's very useful to handle groups in an OOP manner 👍 Eventually it should implement the
Afaict, that's exactly what a subgraph does. Explicitly creating subgraphs has the benefit of well, being explicit... But then again, we can also provide some convenience $builder = new SubgraphBuilder($graph);
$builder->setAutoCreateOnGet(true);
$builder->setNestingSeparator(':');
$subgraph = $builder->getSubgraphNested('this:is:on:level4');
$subgraph->createVertex('a vertex within level4 subgraph'); I'm trying not to clutter this ticket with my |
Ping @clemens-tolboom, what's the status on this ticket? GraphViz has been split off via #115, while #103 introduced general purpose attributes for all entities. Afaict this ticket asks for a way to assign attributes to a group of entities at once? |
This relates to graphp#39. I decided to break BC and introduce a new entity to represent a Group. Design choices: - A group is unique in the entire graph. - An entity doesn't have to be in a group. - A group can use its Graph to find out which vertices are also in it. - A group has to be created before it can be used (same for vertices).
Closed via #168, see graphp/graphviz#38 instead. |
While trying to fix #36 it seems we need something like a cluster class for graphviz to add local attributes for the cluster like
We do have a group concept for vertices but their group needs attributes. We can call this a subgraph but that would mean the users of Graph must create these.
A group is just tagging vertice with a belongs to relation.
Kan we call this
class Group
?The text was updated successfully, but these errors were encountered: