Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/GAP/pkg/jupyterviz/examples/   (Algebra von RWTH Aachen Version 4.15.1©)  Datei vom 16.7.2022 mit Größe 514 B image not shown  

Quelle  07simplegraph.md   Sprache: unbekannt

 
Spracherkennung für: .md vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]


# Drawing a simple graph

Previous examples dealt with charting and plotting, but now we
transition into examples on graph drawing (with vertices and
edges).  Thus we begin using the `PlotGraph` function.

It can take a vertex set and relation, as shown below.

```
G := Group( (1,2,3), (1,2) );;
S := function ( H, G ) return IsSubgroup( G, H ); end;;
PlotGraph( AllSubgroups( G ), S );
```

As you can see below, this doesn't look as nice as we'd like, so
let's consider how to improve it in the next example.


[ Dauer der Verarbeitung: 0.30 Sekunden  ]