lesmis is an igraph object. Its vertices
are the characters of the novel and an edge indicates that the two characters
appear together in the same chapter of the novel, at least once. Vertex
attributes for this graph are id, a vertex number between 1 and 77,
and label, the character's name. The edge attribute value
gives the number of co-appearances between the two characters afferent to the
edge (the igraph can thus be made a weighted graph
using this attribute). Finally, a graph attribute layout is used to
provide a layout (generated with the igraph function
layout_with_fr) for
visualizing the graph.
dissim.lesmis is a dissimilarity matrix computed with the function
shortest_paths and containing the length of the
shortest paths between pairs of nodes.