i added some sample relations
http://www.root.artwaves.de/screensnapr/1331994153-5bQnZU.jpg

the graph is
http://www.root.artwaves.de/screensnapr/1331994133-Q5rrCi.jpg

google.de points to c2, but the relations show that it actually does not.

CommentFileSizeAuthor
#3 graphviz-1487732-3.png10.5 KBclemens.tolboom

Comments

clemens.tolboom’s picture

Thanks for reporting. I think this is a bug for thejit.js but not for 100%.

Could you try to render your data into graphviz output? That is a plain text for now. (Did I commit that code?!?)

This related to graphapi #1396538: Should we merge multiple views outputs into 1 graph? which sould lead to displaying raw output.

marcoka’s picture

heres the raw data (graphviz) for these relations: http://www.root.artwaves.de/screensnapr/1332347362-is1df6.jpg

digraph { 
24 [ label = "skype-lasst-sich-wieder-in-systemtray-minimieren" ] 
23 [ label = "www.funkkopfhoerer-infos.de" ] 
25 [ label = "cloning-content-types-in-drupal-7-errata" ] 
26 [ label = "stoerung-bei-funkkopfhoerern" ] 
27 [ label = "funkkopfhoerer-empfehlungen" ] 
28 [ label = "worauf-beim-funkkopfhoerer-achten" ] 
30 [ label = "de" ] 
31 [ label = "AKG K-271 durch Funkkopfhörer ablösen" ] 
24 -> 23 23 -> 24 23 -> 25 23 -> 26 23 -> 27 23 -> 28 23 -> 30 23 -> 31 25 -> 23 26 -> 23 27 -> 23 28 -> 23 30 -> 23 31 -> 23 
}
clemens.tolboom’s picture

Project: The JIT » Graph API
Component: Force Directed » Code
Priority: Normal » Major
StatusFileSize
new10.5 KB

Thanks for posting.

The graphviz output contains duplicate relations/links. You screenshots intention is a plain directed graph. The data provided renders to this image with graphviz on mac.

graphviz-1487732-3.png

The data 24 -> 23 23 -> 24 23 -> 25 23 -> 26 23 -> 27 23 -> 28 23 -> 30 23 -> 31 25 -> 23 26 -> 23 27 -> 23 28 -> 23 30 -> 23 31 -> 23 has it's links back and forth like 23 -> 25 25 -> 23

So this is a bug of Graph API duplicating the links somehow.

I set this issue priority to major as graph API results are a little untrustworthy now :(

marcoka’s picture

Project: Graph API » The JIT

i digged around a bit, this logic must be implemnted in thejit js code, as far as i see this

marcoka’s picture

Project: The JIT » Graph API

ok wrong. i am taking a look at this.
this happens if the relationship node <-> node is set to any

marcoka’s picture

some notes:
line 89 views_graphapi_style.theme.inc
views result coming in -> http://www.root.artwaves.de/screensnapr/1342807880-KtKoaa.jpg

line 113 $graph is
http://www.root.artwaves.de/screensnapr/1342807966-IwGagC.jpg

63 contains two edges now, wrong.

i am starting to think that this is wrong data provides by relation/views

marcoka’s picture

it seems, that the relation can NOT be set to any. any would get data "everything Y that relates to X automatically has Y relate to X". and so every node will have double arrows.

clemens.tolboom’s picture

Priority: Major » Normal

I'm not getting this issue anymore ... can you please update the issue summary a little if still needed :)

When you change the views format to ie a table format you should get the duplicates too. So no need for screenshots I guess. If needed more screenshots please embed these :p

What is the relation defined by you between the nodes?

marcoka’s picture

directional called "links to" so node x links toy and so on.
as said, i also asked it in teh relation issue queue. you can not use ANY :) just source or target. and it works.

i think we can close that?

clemens.tolboom’s picture

Status: Active » Closed (works as designed)

According to #9 this is a problem of the relation module.