1 #ifndef EDGE_H_INCLUDED
2 #define EDGE_H_INCLUDED
36 : m_first(f), m_second(s) {}
41 return ((m_first == e.m_first && m_second == e.m_second) || (m_first == e.m_second && m_second == e.m_first));
60 std::ostream&
Print(std::ostream& os)
const;
67 inline std::ostream& operator<<(std::ostream& os,
const Edge& e)
75 #endif //end_of_include_guard
bool IsFixed() const
Query whether edge is fixed.
Namespace for the core simulator.
An Edge connects two nodes and is ambidextrous.
Edge(Node *f=nullptr, Node *s=nullptr)
Construct edge using two node pointers.
Node * GetFirst() const
Get the first node of the edge.
bool operator==(const Edge &e) const
Ambidextrous equivalence.
std::ostream & Print(std::ostream &os) const
Insert the edge in an output stream.
Node * GetSecond() const
Get the second node of the edge.