Changes in lemon/core.h [966:c8fce9beb46a:994:20ae244b4779] in lemonmain
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

lemon/core.h
r966 r994 1869 1869 ///a single node \c n, then \ref refresh(Node) "refresh(n)" is enough. 1870 1870 /// 1871 #ifdef DOXYGEN 1872 Arc operator()(Node s, Node t, Arc prev=INVALID) const {} 1873 #else 1874 using ArcLookUp<GR>::operator() ; 1875 Arc operator()(Node s, Node t, Arc prev) const 1871 Arc operator()(Node s, Node t, Arc prev=INVALID) const 1876 1872 { 1877 return prev==INVALID?(*this)(s,t):_next[prev]; 1878 } 1873 if(prev==INVALID) 1874 { 1875 Arc f=INVALID; 1876 Arc e; 1877 for(e=_head[s]; 1878 e!=INVALID&&_g.target(e)!=t; 1879 e = t < _g.target(e)?_left[e]:_right[e]) ; 1880 while(e!=INVALID) 1881 if(_g.target(e)==t) 1882 { 1883 f = e; 1884 e = _left[e]; 1885 } 1886 else e = _right[e]; 1887 return f; 1888 } 1889 else return _next[prev]; 1890 } 1891 1892 }; 1893 1894 /// @} 1895 1896 } //namespace lemon 1897 1879 1898 #endif 1880 1881 };1882 1883 /// @}1884 1885 } //namespace lemon1886 1887 #endif
Note: See TracChangeset
for help on using the changeset viewer.