Skip to content

add edge dependency types and DAGValidationError(msg) #26

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aphor
Copy link

@aphor aphor commented May 15, 2018

Accommodate multigraph DAG by introducing a dependency_type keyword argument on several methods. Internally, if the dependency_type is None (by default), the representation of graph edges remains the same. If the dependency_type evaluates to a boolean True, then the edge is represented as a 2-tuple (dep_node, dependency_type), and the DAG can support multiple unique edges from a node to another.

Also introduce an error message (unused, but appearing conspicuously in the stack trace), for attempts to add a cyclical edge.

doctrings, error handling, relax tests
@aphor aphor force-pushed the feature/edge_types branch from c0fad35 to dc92aec Compare May 23, 2018 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant