Current Forum: Homework 5 General Forum |
Date: Mon Nov 5 2001 8:02 pm |
Author: Shi, Ying <shy@cmu.edu> |
Subject: write-up clarification -- in interface Graph.java |
|
|
" //get the degree of the given vertex. //this is defined as the number of incident edges to the vertex public int getDegree(Vertex V) throws IllegalArgumentException; "
" //get the in-degree of the given vertex. //this is defined as the number of incident edges to the vertex public int getInDegree(Vertex V) throws IllegalArgumentException; "
" //get the out-degree of the given vertex. //this is defined as the number of incident edges to the vertex public int getOutDegree(Vertex V) throws IllegalArgumentException; "
I got surely confused with the seemingly identical three definitions("number of incident edges to the vertex") for three different terms(degree, indegree, and outdegree), are they really same or not ??
Thanks for any quick feedback!
|
|