Discussion Board
There are no previous messagesGo to the following message
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!
Post response

There are no previous messagesGo to the following message
Current Thread Detail:
write-up clarification -- in interface...      Shi, Ying      Mon Nov 5 2001 8:02 pm       
Re: write-up clarification -- in in...      Lee, Peter      Mon Nov 5 2001 10:53 pm       

Back to previous screen