{"id":15777092,"url":"https://github.com/healeycodes/country-borders","last_synced_at":"2025-03-31T15:37:54.440Z","repository":{"id":112377921,"uuid":"277088814","full_name":"healeycodes/country-borders","owner":"healeycodes","description":"🗺️ Calculating the path between two countries with the least border crossings.","archived":false,"fork":false,"pushed_at":"2020-07-05T15:44:42.000Z","size":249,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-05T17:42:23.302Z","etag":null,"topics":["breadth-first-search","country-borders","matplotlib","networkx"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/healeycodes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-04T10:34:12.000Z","updated_at":"2022-11-26T13:03:02.000Z","dependencies_parsed_at":"2023-05-14T04:00:25.869Z","dependency_job_id":null,"html_url":"https://github.com/healeycodes/country-borders","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/healeycodes%2Fcountry-borders","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/healeycodes%2Fcountry-borders/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/healeycodes%2Fcountry-borders/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/healeycodes%2Fcountry-borders/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/healeycodes","download_url":"https://codeload.github.com/healeycodes/country-borders/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246490786,"owners_count":20786059,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["breadth-first-search","country-borders","matplotlib","networkx"],"created_at":"2024-10-04T17:42:32.755Z","updated_at":"2025-03-31T15:37:54.416Z","avatar_url":"https://github.com/healeycodes.png","language":"Python","readme":"# country-borders\n\n\u003e My blog post: https://healeycodes.com/practical-intro-to-graphs/\n\n\u003cbr\u003e\n\nCalculating the path between two countries with the least border crossings.\n\n\u003cbr\u003e\n\nThis repository shows some examples of:\n\n- Consuming CSV data and building multiple graphs\n- Displaying graphs with `networkx`/`matplotlib.pyplot`\n- Finding the shortest path (Breadth-First Search) between vertices (e.g. France to China)\n- Building a graph of all the non-islands of the world\n\n\u003cbr\u003e\n\n### The shortest path between France and China\n\n`fr-to-cn.py` builds multiple graphs and dynamically outputs:\n\n```\nFrance is connected to 8 countries.\nThey are Andorra, Belgium, Germany, Italy, Luxembourg, Monaco, Spain, Switzerland.\nThe shortest path from France to China is: France -\u003e Germany -\u003e Poland -\u003e Russian Federation -\u003e China.\n```\n\nand displays:\n\n![A line of nodes, FR-DE-PL-RU-CN](https://github.com/healeycodes/country-borders/blob/master/fr-to-cn.png)\n\n\u003cbr\u003e\n\n### The non-islands of the world\n\n`non-islands.py` builds the same graphs, culls the islands, and displays:\n\n![A networked graph of all the non-islands](https://github.com/healeycodes/country-borders/blob/master/squished-non-islands.png)\n\n\u003cbr\u003e\n\n### License\n\nMIT.\n\n_This site or product includes Country Borders data available from https://www.geodatasource.com_\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhealeycodes%2Fcountry-borders","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhealeycodes%2Fcountry-borders","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhealeycodes%2Fcountry-borders/lists"}