# How to graph fano's plane

**URL:** <https://discourse.julialang.org/t/how-to-graph-fanos-plane/10201>\
**Category:** New to Julia\
**Created:** [April 6, 2018, 4:04pm UTC](https://discourse.julialang.org/t/how-to-graph-fanos-plane/10201 "2018-04-06T16:04:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Henri\_Girard](https://avatars.discourse-cdn.com/v4/letter/h/a3d4f5/32.png) [@Henri\_Girard](https://discourse.julialang.org/u/Henri_Girard)\
**Post date:** [April 6, 2018, 4:04pm UTC](https://discourse.julialang.org/t/how-to-graph-fanos-plane/10201/1 "2018-04-06T16:04:59Z")

</div>

Hi,  
I would like to know if it’s possible to graph a plano’s plane with julia and help to make it  
Regards

---

<div class="post-metadata">

**Author:** ![dpsanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpsanders/32/3573_2.png) [@dpsanders](https://discourse.julialang.org/u/dpsanders)\
**Post date:** [April 6, 2018, 4:49pm UTC](https://discourse.julialang.org/t/how-to-graph-fanos-plane/10201/2 "2018-04-06T16:49:25Z")

</div>

In order for people to be able to help you, you need to tell us what a fano plane is and what you have tried so far.

---

<div class="post-metadata">

**Author:** ![anon94023334](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@anon94023334](https://discourse.julialang.org/u/anon94023334)\
**Post date:** [April 6, 2018, 7:46pm UTC](https://discourse.julialang.org/t/how-to-graph-fanos-plane/10201/3 "2018-04-06T19:46:06Z")

</div>

Assuming it’s [this](https://en.wikipedia.org/wiki/Fano_plane), and all you need is a diagram:

```julia
using LightGraphs, GraphPlot
g = Graph(7)
edges = [(1,2), (1,3), (1,4), (2,3), (2,4), (2,5), (2, 6), (3,4), (3,5), (3,6), (3,7), (4,6), (4,7), (5,6), (6,7)]
for t in edges
    add_edge!(g, t[1], t[2])
end
gplot(g)

```

yielding

 ![36%20](https://global.discourse-cdn.com/julialang/original/3X/9/1/91d7e7e6e0c871d89dbc81644c0c2eeb451f931e.png)

This of course is not a true mathematical representation of Fano’s plane, but it results in a (more-or-less) correct 2-D visual representation. You might also be interested in the Heawood Graph, which Wolfram tells me is the point/line incidence graph on the Fano plane and can be created using `LightGraphs.smallgraph(:heawood)`.

---

<div class="post-metadata">

**Author:** ![Henri\_Girard](https://avatars.discourse-cdn.com/v4/letter/h/a3d4f5/32.png) [@Henri\_Girard](https://discourse.julialang.org/u/Henri_Girard)\
**Post date:** [April 6, 2018, 8:17pm UTC](https://discourse.julialang.org/t/how-to-graph-fanos-plane/10201/4 "2018-04-06T20:17:08Z")

</div>

Thank you that’s what I was looking for !

---

<div class="post-metadata">

**Author:** ![Henri\_Girard](https://avatars.discourse-cdn.com/v4/letter/h/a3d4f5/32.png) [@Henri\_Girard](https://discourse.julialang.org/u/Henri_Girard)\
**Post date:** [April 6, 2018, 8:18pm UTC](https://discourse.julialang.org/t/how-to-graph-fanos-plane/10201/5 "2018-04-06T20:18:28Z")

</div>

Thank you I just answer I was looking for this kind of graphs

And sorry I forget to explain my wish.

Regards

---

<div class="post-metadata">

**Author:** ![dpsanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpsanders/32/3573_2.png) [@dpsanders](https://discourse.julialang.org/u/dpsanders)\
**Post date:** [April 6, 2018, 9:33pm UTC](https://discourse.julialang.org/t/how-to-graph-fanos-plane/10201/6 "2018-04-06T21:33:31Z")

</div>

OK, it would have been helpful if you had given the link to the Wikipedia page or a picture of the graph.

---

<div class="post-metadata">

**Author:** ![Henri\_Girard](https://avatars.discourse-cdn.com/v4/letter/h/a3d4f5/32.png) [@Henri\_Girard](https://discourse.julialang.org/u/Henri_Girard)\
**Post date:** [April 7, 2018, 7:32am UTC](https://discourse.julialang.org/t/how-to-graph-fanos-plane/10201/7 "2018-04-07T07:32:39Z")

</div>

Yes, I didn’t think of it… But now I know what to do. In fact I  
was desespearing of finding a way to do it … I was my last  
atempt because I try with other language and go no positive answer  
!

Sorry again and thanks all for your help
