Hi,<br><br><br>I've got a question which is graph-related.<br><br>Let's suppose I have a linear network. <br><br>I cut the lines at the intersections and get some vertexes and edges connecting them<br><br>How can I turn this into a graph that I could treat in igraph?<br>
<br>I've put a line sample as attached file if any geohacker is interested in facing the challenge ;)<br><br><br>Mat<br><br><div class="gmail_quote">2012/8/25 Karl Ove Hufthammer <span dir="ltr"><<a href="mailto:karl@huftis.org" target="_blank">karl@huftis.org</a>></span><br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Barry Rowlingson skreiv:<br>
<div class="im"><br>
> [1] I think the zero indexing might be changing soon, or has<br>
> changed... Recent igraphs might be different,<br>
<br>
</div>Indeed. From the release notes of igraph 0.6:<br>
<br>
,----[ <a href="http://igraph.sourceforge.net/relnotes-0.6.html" target="_blank">http://igraph.sourceforge.net/relnotes-0.6.html</a> ]<br>
| The biggest change in the R interface is that starting from this version<br>
| vertices and edges are numbered from one. This change might be painful<br>
| for many people, because it makes already existing code incompatible with<br>
| igraph 0.6. To make the switch easier, there is now an igraph0 package<br>
| on CRAN; igraph0 uses 0-based vertex and edge ids, and it can be used<br>
| to run old code. Note, however, that igraph0 will not be developed in<br>
| the future. Please use the igraph package for current and future work.<br>
|<br>
| (Also note that in Python and C vertices and edges are still numbered<br>
| from zero, as these languages traditionally use zero-based indexing.)<br>
`----<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Karl Ove Hufthammer<br>
E-mail: <a href="mailto:karl@huftis.org">karl@huftis.org</a><br>
Jabber: <a href="mailto:huftis@jabber.no">huftis@jabber.no</a><br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
R-sig-Geo mailing list<br>
<a href="mailto:R-sig-Geo@r-project.org">R-sig-Geo@r-project.org</a><br>
<a href="https://stat.ethz.ch/mailman/listinfo/r-sig-geo" target="_blank">https://stat.ethz.ch/mailman/listinfo/r-sig-geo</a><br>
</div></div></blockquote></div><br>