{"id":350,"date":"2021-09-01T14:52:52","date_gmt":"2021-09-01T14:52:52","guid":{"rendered":"https:\/\/cqllab.upc.edu\/lal\/?page_id=350"},"modified":"2021-09-01T14:52:52","modified_gmt":"2021-09-01T14:52:52","slug":"data-formats","status":"publish","type":"page","link":"https:\/\/cqllab.upc.edu\/lal\/data-formats\/","title":{"rendered":"Data formats"},"content":{"rendered":"\n<p>The <em>edge list<\/em> format is very simple: every tree is represented with a list of all its edges with indices from <em>0<\/em> to <em>n-1<\/em> (where <em>n<\/em> denotes the number of vertices). The list of edges ends at the end of the line.<\/p>\n\n\n\n<p>In the <em>head vector<\/em> format, every tree is represented with a vector of parent vertices (each consisting of a single line): the integer at position <em>p<\/em> in the list denotes the parent\u2019s index of the <em>p-th<\/em> vertex, and a <em>0<\/em> denotes the only vertex with no parent. Example 1: the head vector \u201c<em>0 1 1 1 1<\/em>\u201d represents a star tree where the hub is vertex <em>0<\/em>. Example 2: the head vector \u201c<em>0 1 2 3 4<\/em>\u201d represents a linear tree where the root vertex is vertex <em>0<\/em>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The edge list format is very simple: every tree is represented with a list of all its edges with indices from 0 to n-1 (where n denotes the number of vertices). The list of edges ends at the end of the line. In the head vector format, every tree is represented with a vector of &hellip; <a href=\"https:\/\/cqllab.upc.edu\/lal\/data-formats\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Data formats&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-350","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/cqllab.upc.edu\/lal\/wp-json\/wp\/v2\/pages\/350","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cqllab.upc.edu\/lal\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cqllab.upc.edu\/lal\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cqllab.upc.edu\/lal\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cqllab.upc.edu\/lal\/wp-json\/wp\/v2\/comments?post=350"}],"version-history":[{"count":1,"href":"https:\/\/cqllab.upc.edu\/lal\/wp-json\/wp\/v2\/pages\/350\/revisions"}],"predecessor-version":[{"id":351,"href":"https:\/\/cqllab.upc.edu\/lal\/wp-json\/wp\/v2\/pages\/350\/revisions\/351"}],"wp:attachment":[{"href":"https:\/\/cqllab.upc.edu\/lal\/wp-json\/wp\/v2\/media?parent=350"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}