{"id":23236738,"url":"https://github.com/pratikpc/formula1-six-degree-graph-util","last_synced_at":"2025-07-08T00:39:35.963Z","repository":{"id":57240867,"uuid":"289977145","full_name":"pratikpc/formula1-six-degree-graph-util","owner":"pratikpc","description":"Added Code to Design and List Graphs Between Multiple Nodes","archived":false,"fork":false,"pushed_at":"2023-11-10T06:55:39.000Z","size":34,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-22T13:03:44.662Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pratikpc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-08-24T16:13:45.000Z","updated_at":"2020-08-27T09:47:26.000Z","dependencies_parsed_at":"2025-02-12T04:32:01.697Z","dependency_job_id":null,"html_url":"https://github.com/pratikpc/formula1-six-degree-graph-util","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pratikpc/formula1-six-degree-graph-util","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pratikpc%2Fformula1-six-degree-graph-util","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pratikpc%2Fformula1-six-degree-graph-util/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pratikpc%2Fformula1-six-degree-graph-util/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pratikpc%2Fformula1-six-degree-graph-util/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pratikpc","download_url":"https://codeload.github.com/pratikpc/formula1-six-degree-graph-util/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pratikpc%2Fformula1-six-degree-graph-util/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264169505,"owners_count":23567311,"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":[],"created_at":"2024-12-19T04:12:36.239Z","updated_at":"2025-07-08T00:39:35.944Z","avatar_url":"https://github.com/pratikpc.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Formula One Graph Names\n\n## Website [https://pratikpc.github.io/six-degree-f1/](https://pratikpc.github.io/six-degree-f1/)\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![TypeScript](https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg)](http://www.typescriptlang.org/) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n\nGraph Operations utilised by the website to parse JSON and Abstract processing\n\n```ts\nimport Graph from 'formula-one-six-degree-graph-util';\n\nconsole.log(Graph.GetDriverName('5'));\nconst graph = new Graph();\n\ngraph.CalculateDistancesBetweenAllElements({ cache: true });\n\nconsole.log(graph.GetSixDegreesOfFreedomInMainComponent());\nconsole.log(\n   'Closest between 1950 and 2020',\n   Graph.GetDriverName(graph.GetClosestDriverPairingBetweenSeasons(1950, 2020))\n);\nconsole.log(\n   Graph.GetDriverName(graph.GetClosestTeamPairing('mclaren', 'lotus'))\n);\nconsole.log(\n   Graph.GetDriverName(\n      graph.GetClosestTeamAndDriverPairing('mclaren', 'kimi-raikkonen')\n   )\n);\nconsole.log('Farthest');\nconsole.log(\n   Graph.GetDriverName(graph.GetFarthestDriverPairingBetweenSeasons(1950, 2020))\n);\nconsole.log(\n   Graph.GetDriverName(graph.GetFarthestTeamPairing('mclaren', 'lotus'))\n);\nconsole.log(\n   Graph.GetDriverName(\n      graph.GetClosestTeamAndDriverPairing('mclaren', 'kimi-raikkonen')\n   )\n);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpratikpc%2Fformula1-six-degree-graph-util","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpratikpc%2Fformula1-six-degree-graph-util","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpratikpc%2Fformula1-six-degree-graph-util/lists"}