proxygen
|
#include <GraphCycleDetector.h>
Public Member Functions | |
bool | addEdge (NodeId from, NodeId to) |
void | removeEdge (NodeId from, NodeId to) |
Private Types | |
using | NodeSet = std::unordered_set< NodeId > |
Private Member Functions | |
void | dfs (NodeSet &visitedNodes, NodeId node) |
Private Attributes | |
std::unordered_map< NodeId, NodeSet > | edges_ |
Definition at line 27 of file GraphCycleDetector.h.
|
private |
Definition at line 28 of file GraphCycleDetector.h.
|
inline |
Add new edge. If edge creates a cycle then it's not added and false is returned.
Definition at line 35 of file GraphCycleDetector.h.
References folly::observer_detail::GraphCycleDetector< NodeId >::dfs(), folly::observer_detail::GraphCycleDetector< NodeId >::edges_, and folly::pushmi::operators::from.
Referenced by folly::observer_detail::ObserverManager::DependencyRecorder::markRefreshDependency().
|
inlineprivate |
Definition at line 61 of file GraphCycleDetector.h.
References folly::observer_detail::GraphCycleDetector< NodeId >::edges_, and folly::to().
Referenced by folly::observer_detail::GraphCycleDetector< NodeId >::addEdge().
|
inline |
Definition at line 51 of file GraphCycleDetector.h.
References folly::observer_detail::GraphCycleDetector< NodeId >::edges_, and folly::pushmi::operators::from.
Referenced by folly::observer_detail::ObserverManager::DependencyRecorder::unmarkRefreshDependency().
|
private |
Definition at line 79 of file GraphCycleDetector.h.
Referenced by folly::observer_detail::GraphCycleDetector< NodeId >::addEdge(), folly::observer_detail::GraphCycleDetector< NodeId >::dfs(), and folly::observer_detail::GraphCycleDetector< NodeId >::removeEdge().