1//===- Digraph.cpp --------------------------------------------------------===//
2//
3//                     The MCLinker Project
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9#include <mcld/ADT/GraphLite/Digraph.h>
10
11using namespace mcld::graph;
12
13//===----------------------------------------------------------------------===//
14// Digraph::Arc
15//===----------------------------------------------------------------------===//
16Digraph::Arc::Arc()
17{
18}
19
20bool Digraph::Arc::operator==(const Digraph::Node& pOther) const
21{
22  return true;
23}
24
25bool Digraph::Arc::operator!=(const Digraph::Node& pOther) const
26{
27  return true;
28}
29
30Digraph::Node Digraph::Arc::source() const
31{
32  return Node();
33}
34
35Digraph::Node Digraph::Arc::target() const
36{
37  return Node();
38}
39
40Digraph::Arc::Arc(Digraph& pParent)
41{
42}
43
44
45//===----------------------------------------------------------------------===//
46// Digraph
47//===----------------------------------------------------------------------===//
48Digraph::Digraph()
49{
50}
51
52
53Digraph::Node Digraph::addNode()
54{
55  return Node();
56}
57
58
59Digraph::Arc
60Digraph::addArc(const Digraph::Node& pSource, const Digraph::Node& pTarget)
61{
62  return Arc();
63}
64
65
66void Digraph::erase(const Digraph::Node& pNode)
67{
68}
69
70
71void Digraph::erase(const Digraph::Arc& pArc)
72{
73}
74
75
76void Digraph::clear()
77{
78}
79
80unsigned int Digraph::numOfNodes() const
81{
82  return 0;
83}
84
85unsigned int Digraph::numOfArcs() const
86{
87  return 0;
88}
89