long Network::getDegree(vertex_id vid) const { long tmp_degree = getInDegree(vid); if (isDirected()) tmp_degree += getOutDegree(vid); return tmp_degree; }
long Network::getInDegree(const std::string& vertex_name) const { return getInDegree(getVertexId(vertex_name)); }
//------------------------------------------------------------------------------ int NiceGraph::getDegree (int vertexID) { return getInDegree(vertexID) + getOutDegree(vertexID); }