Re: Interfaces using generic tipe constrinctions

Jim might be right about not needing to make the edges and vertices generic. Or maybe you do want to make them generic, if they're supposed to carry references to something they represent. Let's say that you do make them generic. If you also genericize your add() methods, etc., the compiler itself will enforce what you want. That's the whole point of generics.

Re: Interfaces using generic tipe constrinctions

Re: Interfaces using generic tipe constrinctions

add and remove operations that wil be used rarily
find vertex or edge this will be oftenly used anyway in the vertex and edge class i'll maintain a refereance to it's position in the colection mainly an index for the list or the hash code for the set