------------------------------------------------------------------------
| 104 | |
| 105 | //------------------------------------------------------------------------ |
| 106 | double trans_single_path::total_length() const |
| 107 | { |
| 108 | if(m_base_length >= 1e-10) return m_base_length; |
| 109 | return (m_status == ready) ? |
| 110 | m_src_vertices[m_src_vertices.size() - 1].dist : |
| 111 | 0.0; |
| 112 | } |
| 113 | |
| 114 | |
| 115 | //------------------------------------------------------------------------ |