Changeset 1679:e825655c24a4 in lemon-0.x for lemon/graph_utils.h
- Timestamp:
- 09/12/05 11:15:59 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2198
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/graph_utils.h
r1674 r1679 160 160 } 161 161 162 /// \brief Function to count the number of the in-edges to node \c n. 163 /// 164 /// This function counts the number of the in-edges to node \c n 165 /// in the graph. 166 template <typename Graph> 167 inline int countIncEdges(const Graph& _g, const typename Graph::Node& _n) { 168 return countNodeDegree<Graph, typename Graph::IncEdgeIt>(_g, _n); 169 } 170 162 171 163 172 template <typename Graph> … … 913 922 /// \param edge The edge 914 923 /// \return The source of the edge 915 Value operator[](const Key& edge) {924 Value operator[](const Key& edge) const { 916 925 return graph.source(edge); 917 926 } … … 954 963 /// \param e The edge 955 964 /// \return The target of the edge 956 Value operator[](const Key& e) {965 Value operator[](const Key& e) const { 957 966 return graph.target(e); 958 967 }
Note: See TracChangeset
for help on using the changeset viewer.