Skip to content

onlyworlds 0.150.0

Choose a tag to compare

@github-actions github-actions released this 24 Nov 15:45
· 60 commits to main since this release
  • Added: most_linked_of(graph, *, per_type=None), the most linked elements of each type. From the graph world_graph answers for a reader, so only what that reader is served is counted (map space, hidden, proposed and room elements stay out unless the graph brought them in). For each type, at most per_type (default 3) of its elements by the landing profile's degree, highest first, ties by id in code point order; a node of degree 0 and a known-of node are never picked, and a type with nothing to pick is left out. It answers {"per_type", "by_type"}, each entry {"id", "name", "degree"}, the name as the graph holds it or None. A few of every type, never one ranking; it is "the most linked", not "where to start": in a world with a secret, the secret is often the hub, so where a world has a Guide, the Guide is the start. A draft reading, held to the package's own fixture (tests/fixtures/most-linked.fixture.json, the same bytes as the npm SDK's) until the landing profile takes it. A per_type that is not a whole number of 1 or more is a ValueError naming it. The npm SDK's mostLinkedOf answers the same.