Skip to content

Simplify SuccessionDiagram API #93

@jcrozum

Description

@jcrozum

While building the docs, I noticed that the SuccessionDiagram API could be simplified in a few ways:

  1. We have various node attributes that could be grouped into a separate object, e.g., sd.node_is_expanded should be sd.node.is_expanded.
  2. Several of the from_xxx(s) methods could be grouped into one function, e.g., from_string(s, format=xxx).
  3. The various expansion methods could be aggregated into one with an method argument.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions