-
Notifications
You must be signed in to change notification settings - Fork 248
add some method for utils #761
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -113,9 +113,11 @@ std::unordered_map<Node, std::unordered_set<Node>> | |
| std::unordered_map<Node, std::unordered_set<Node>> | ||
| get_predecessors(DiGraphView const &, std::unordered_set<Node> const &); | ||
|
|
||
| // return the set of nodes without incoming edges | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Change to doxygen syntax
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Get it |
||
| std::unordered_set<Node> get_sources(DiGraphView const &); | ||
| std::unordered_set<Node> get_sources(MultiDiGraphView const &); | ||
|
|
||
| // return the set of nodes without outgoing edges | ||
| std::unordered_set<Node> get_sinks(DiGraphView const &); | ||
| std::unordered_set<Node> get_sinks(MultiDiGraphView const &); | ||
|
|
||
|
|
||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed in a separate commit -- pull in changes from the commit linked in #758 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -46,7 +46,7 @@ struct IDiGraphView : public IGraphView { | |
| IDiGraphView &operator=(IDiGraphView const &) = delete; | ||
|
|
||
| virtual std::unordered_set<Edge> query_edges(EdgeQuery const &) const = 0; | ||
| virtual ~IDiGraphView(); | ||
| virtual ~IDiGraphView() = default; | ||
|
|
||
| protected: | ||
| IDiGraphView() = default; | ||
|
|
@@ -62,7 +62,9 @@ struct DiGraphView { | |
|
|
||
| DiGraphView() = delete; | ||
|
|
||
| operator GraphView() const; | ||
| operator GraphView() const { | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Move implementations to |
||
| return GraphView(this->ptr); | ||
| } | ||
|
|
||
| friend void swap(DiGraphView &, DiGraphView &); | ||
|
|
||
|
|
@@ -87,9 +89,9 @@ struct DiGraphView { | |
| return DiGraphView(std::make_shared<T>(std::forward<Args>(args)...)); | ||
| } | ||
|
|
||
| private: | ||
| DiGraphView(std::shared_ptr<IDiGraphView const>); | ||
| DiGraphView(std::shared_ptr<IDiGraphView const> ptr) : ptr(ptr) {} | ||
|
|
||
| private: | ||
| friend DiGraphView unsafe(IDiGraphView const &); | ||
|
|
||
| private: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you delete the README?