You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by James Carman <jw...@gmail.com> on 2012/03/02 02:41:06 UTC

[graph] Why the Vertex/Edge Interfaces?

Should we not let anything be an edge or a vertex?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [graph] Why the Vertex/Edge Interfaces?

Posted by James Carman <ja...@carmanconsulting.com>.
True, the weighted stuff might require an interface, but you could
have a "regular" graph with arbitrary objects representing its edges
and vertices.

On Fri, Mar 2, 2012 at 2:35 AM, Simone Tripodi <si...@apache.org> wrote:
> Hi James,
>
> while it could be true for Vertex, Edge in some case requires
> assumptions, such as the Weight so a marker interface is required.
>
> Do you have a proposal to modify current codebase?
> TIA!
> -Simo
>
> http://people.apache.org/~simonetripodi/
> http://simonetripodi.livejournal.com/
> http://twitter.com/simonetripodi
> http://www.99soft.org/
>
>
>
> On Fri, Mar 2, 2012 at 2:41 AM, James Carman <jw...@gmail.com> wrote:
>> Should we not let anything be an edge or a vertex?
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>> For additional commands, e-mail: dev-help@commons.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [graph] Why the Vertex/Edge Interfaces?

Posted by Simone Tripodi <si...@apache.org>.
Hi James,

while it could be true for Vertex, Edge in some case requires
assumptions, such as the Weight so a marker interface is required.

Do you have a proposal to modify current codebase?
TIA!
-Simo

http://people.apache.org/~simonetripodi/
http://simonetripodi.livejournal.com/
http://twitter.com/simonetripodi
http://www.99soft.org/



On Fri, Mar 2, 2012 at 2:41 AM, James Carman <jw...@gmail.com> wrote:
> Should we not let anything be an edge or a vertex?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org