{"id":16490731,"url":"https://github.com/awinterman/manage-d3-force","last_synced_at":"2025-08-18T13:18:53.007Z","repository":{"id":12069831,"uuid":"14656921","full_name":"AWinterman/manage-d3-force","owner":"AWinterman","description":"Manage the hard parts of d3.force.layouts","archived":false,"fork":false,"pushed_at":"2013-11-24T06:36:56.000Z","size":108,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-01T06:27:01.026Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/AWinterman.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}},"created_at":"2013-11-24T06:34:43.000Z","updated_at":"2013-12-06T02:22:24.000Z","dependencies_parsed_at":"2022-09-03T14:30:25.921Z","dependency_job_id":null,"html_url":"https://github.com/AWinterman/manage-d3-force","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AWinterman/manage-d3-force","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AWinterman%2Fmanage-d3-force","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AWinterman%2Fmanage-d3-force/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AWinterman%2Fmanage-d3-force/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AWinterman%2Fmanage-d3-force/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AWinterman","download_url":"https://codeload.github.com/AWinterman/manage-d3-force/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AWinterman%2Fmanage-d3-force/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270998264,"owners_count":24682214,"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","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10-11T13:48:54.344Z","updated_at":"2025-08-18T13:18:52.977Z","avatar_url":"https://github.com/AWinterman.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# manage-d3-force #\n\nManage the hard parts of d3.force.layouts\n\n```\nnew Manage(loops, directed, multiedge)\n```\n\n - `loops`: true if a link can connect a node to itself?\n - `directed`: true if a link from A -\u003e B === B -\u003e A?\n - `multiedge`: true if the link A -\u003e B can appear multiple times in a graph.\n\n## `manage.is(A, B)` ##\nChecks for equality between two links, paying attention to\nwhether the graph is directed. Links are equal if they point to the same\nobjects.\n\n## `manage.indexOf(link)` ##\nChecks if the link exists in the d3.force.links() array. It has the same\nsignature as Array.indexOf\n\n## `manage.has(link, force)`##\nReturns true if the link is in the force directed\nlayout.\n\n##`manage.count(link)` ##\nReturns a count of the number of times a link appears in\nthe `force.links()` array. \n\n## `manage.add_link(link)`##\nAdd a link to the graph. If the graph does not allow multiple edges, check st\nto make sure we don't already have it. `Change#add_link` also updates the\nneighborhoods of the source and the target to include the new link.  Returns\n`true` if the link was successfully added to the array, `false` otherwise.\n\n## `manage.remove_link(link)` \n\nRemove the link, once. If the graph is not directed, it will treat a link\nand its reverse as though they were identical. \n\nThis method will also update the neighborhood attributes of the source and\ntarget, removing its first argument from both.  If the link to be removed\nis in the d3.layout.force().link() array, returns `true`. Returns\n`false` otherwise.\n\n## `manage.reverse(link)` ##\nReverse source and target for a link.\n\n## `manage.orphan(node)` ##\nRemove all links connecting to a node\n\n## `manage.remove(node)` ##\nRemove all links to a node (`orphan` it), and then rmove the node itself.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawinterman%2Fmanage-d3-force","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fawinterman%2Fmanage-d3-force","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawinterman%2Fmanage-d3-force/lists"}