Skip to content

PatrikHolopainen/1on1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

1on1

1on1 is a small project that uses the Networx library and Python 3 to calculate divisions of networks.

Problem

Given a directed no-self-looping network, how many ways are there to divide it so, that every node has a an in- and out-degree of exactly 1?

Motivation

This project started from a Secret Santa family tradition: The grown-ups of a family decided that it would be too much effort to buy presents to all other grown-ups, so they started a game that would reduce the amount of presents bought.

Rules of the game

  1. For every participant another random participant is chosen.
  2. Each participant buys a single present to their target.
  3. Each participant can be a targt only once, thus everyone gets and gives exactly one present
  4. A participant can't buy a present to himself, or their husband/wife/partner (as they are likely going to buy presents for each other anyway)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages