Skip to content

Commit

Permalink
add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ImogenBits committed Jan 8, 2024
1 parent 06b30ab commit 92ee660
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/instructor/problem/advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ directionless. Both graph's size is the number of vertices in it.

!!! tip "Associated Annotation Types"
As you can see in the example above, we also provide several types that are useful in type annotations of graph
problems such as `Vertex` or `Edge`. These are documented in more detail in the
problems such as `Vertex`, `Edge`, or `Path`. How these function is explained in more detail in the
[advanced annotations](annotations.md) section.

If you want the problem instance to also contain additional information associated with each vertex and/or each edge
Expand Down Expand Up @@ -201,6 +201,11 @@ indexed with the type of the weights you want to use.
...
```

!!! tip
These classes also contain some utility methods to easily perform common graph operations. For example,
`UndirectedGraph.edge_set` contains all edges in both directions, and the `neighbors` methods lets you quickly
access a vertex's neighbours.

## Comparing Floats

!!! abstract
Expand Down

0 comments on commit 92ee660

Please sign in to comment.