]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/include/directed-graph.hh
patch::: 1.0.12.hwn1
[lilypond.git] / flower / include / directed-graph.hh
index f82222158580c06e72301ac727b85d4e9aacbf85..af898a4028a1504a04f6e44f3e4f00958a6e5348 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
+  (c)  1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
 
   Class to handle two-sided connections between nodes (the Dependencies)
  */
 class Directed_graph_node {
-    Link_array<Directed_graph_node>edge_out_l_arr_;
-    /// targets
-    Link_array<Directed_graph_node> edge_in_l_arr_;
+  Link_array<Directed_graph_node>edge_out_l_arr_;
+  /// targets
+  Link_array<Directed_graph_node> edge_in_l_arr_;
     
 public:
     
-    /** remove i-th edge_out (and exactly one ref to me in the edge_out)
-      */
-    void remove_edge_out_idx (int i);
-    void copy_edges_out (Directed_graph_node const&);
-    bool linked_b() const;
-    void unlink();
-    void junk_links();
-    void add (Directed_graph_node*);
-    void remove_edge_in (Directed_graph_node *);
-    void remove_edge_out (Directed_graph_node*);
-    bool contains_b (Directed_graph_node const*) const;
-
-    Directed_graph_node (Directed_graph_node const &);
-    void OK() const;
-    Directed_graph_node();
-
-    ~Directed_graph_node();
+  /** remove i-th edge_out (and exactly one ref to me in the edge_out)
+   */
+  void remove_edge_out_idx (int i);
+  void copy_edges_out (Directed_graph_node const&);
+  bool linked_b() const;
+  void unlink();
+  void junk_links();
+  void add_edge (Directed_graph_node*);
+  void remove_edge_in (Directed_graph_node *);
+  void remove_edge_out (Directed_graph_node*);
+  bool contains_b (Directed_graph_node const*) const;
+
+  Directed_graph_node (Directed_graph_node const &);
+  void OK() const;
+  Directed_graph_node();
+
+  ~Directed_graph_node();
     
-    /**
-     ensure that no edge_out exists doubly.
-     */
-    void uniq();
-    Link_array<Directed_graph_node> const& get_out_edge_arr() const;
-    Link_array<Directed_graph_node> const& get_in_edge_arr() const;
+  /**
+    ensure that no edge_out exists doubly.
+    */
+  void uniq();
+  Link_array<Directed_graph_node> const& get_out_edge_arr() const;
+  Link_array<Directed_graph_node> const& get_in_edge_arr() const;
 };
 
 #endif // DEPENDENCY_HH