Home | History | Annotate | Download | only in GraphLite
      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 
     11 using namespace mcld::graph;
     12 
     13 //===----------------------------------------------------------------------===//
     14 // Digraph::Arc
     15 //===----------------------------------------------------------------------===//
     16 Digraph::Arc::Arc()
     17 {
     18 }
     19 
     20 bool Digraph::Arc::operator==(const Digraph::Node& pOther) const
     21 {
     22   return true;
     23 }
     24 
     25 bool Digraph::Arc::operator!=(const Digraph::Node& pOther) const
     26 {
     27   return true;
     28 }
     29 
     30 Digraph::Node Digraph::Arc::source() const
     31 {
     32   return Node();
     33 }
     34 
     35 Digraph::Node Digraph::Arc::target() const
     36 {
     37   return Node();
     38 }
     39 
     40 Digraph::Arc::Arc(Digraph& pParent)
     41 {
     42 }
     43 
     44 
     45 //===----------------------------------------------------------------------===//
     46 // Digraph
     47 //===----------------------------------------------------------------------===//
     48 Digraph::Digraph()
     49 {
     50 }
     51 
     52 
     53 Digraph::Node Digraph::addNode()
     54 {
     55   return Node();
     56 }
     57 
     58 
     59 Digraph::Arc
     60 Digraph::addArc(const Digraph::Node& pSource, const Digraph::Node& pTarget)
     61 {
     62   return Arc();
     63 }
     64 
     65 
     66 void Digraph::erase(const Digraph::Node& pNode)
     67 {
     68 }
     69 
     70 
     71 void Digraph::erase(const Digraph::Arc& pArc)
     72 {
     73 }
     74 
     75 
     76 void Digraph::clear()
     77 {
     78 }
     79 
     80 unsigned int Digraph::numOfNodes() const
     81 {
     82   return 0;
     83 }
     84 
     85 unsigned int Digraph::numOfArcs() const
     86 {
     87   return 0;
     88 }
     89