Sorry, for failing to explain clearly what to do. Attached follows a PDF that 
shows exactly heuristic that wish to implement (section 4.2).
** The graph is generated from a data set using the E-Cut and KNN algorithms.   
The distance function that will be used as stated earlier will be Euclidean. 
Thanks
> Date: Wed, 24 Jun 2015 20:51:48 +0200
> From: [email protected]
> To: [email protected]
> Subject: Re: [igraph] : Neighborhood function
> 
> Hi,
> 
> >  I would like you to help to solve the following problem. I need to 
> > calculate
> >  the sum of all distances of a vertex " i " to all its k neighbors.
> I'm not sure I understand what you mean -- surely, if some vertex j is
> a neighbor of i, then the distance of i and j is 1 (otherwise they wouldn't be
> neighbors, would they?), so you simply need the degree of each vertex.
> 
> Or do you actually mean that the vertices are embedded in some k-dimensional
> space and you have some kind of a distance function that tells the "actual"
> distance of any two vertices?
> 
> T.
> 
> _______________________________________________
> igraph-help mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/igraph-help
                                          
_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to