hunk.code_window:   const initialVertex = optionsWithDefaults.stateSerializer(
       machine.initialState
     );
     weightMap.set(initialVertex, [0, undefined, undefined]);
     const unvisited = new Set<string>();
     const visited = new Set<string>();
  
hunk.labels: keep keep add keep keep keep keep keep
hunk.after_edit:   stateMap.set(initialVertex, machine.initialState);
  
hunk.file_path: packages/xstate-graph/src/graph.ts
hunk.type: add
file: {
    "name": "xstate",
    "version": "4.5.0",
    "description": "Finite State Machines and Statecharts for the Modern Web.",
    "main": "lib/index.js",
    "module": "es/index.js",
    "types": "lib/index.d.ts",
    "files": [
      "dist",
      "lib",
      "es"
    ],
    "keywords": [
      "statechart",
      "state machine",
      "finite state machine",
      "finite automata",
      "scxml",
      "state",
      "interpreter"
    ],
    "scripts": {
      "start": "npm run build",
      "prettify": "prettier --config ./.prettierrc --write ./{lib,es,src,test}/**/*.ts",
      "ci": "npm run build && npm run compile:es && npm run compile:lib && npm run test",
      "test": "npm run build:cjs && mocha --require ts-node/register test/**.ts test/**/*.test.ts && npm run test:packages",
      "test:packages": "mocha --require ts-node/register packages/**/test/*.test.ts && cd packages/xstate-react && npm test",
      "compile:lib": "tsc -p tsconfig.lib.json",
      "compile:es": "tsc -p tsconfig.es.json",
      "build": "npm run build:cjs && npm run build:es && npm run build:umd",
      "build:cjs": "tsc",
      "build:es": "tsc --outDir es -m ES2015",
      "build:umd": "rollup -c",
      "postbuild:es": "babel es --out-dir es --no-babelrc --plugins annotate-pure-calls",
      "preversion": "npm run test",
      "version": "npm run build",
      "postversion": "git push --follow-tags",
      "prepublish": "npm run build",
      "postpublish": "lerna add xstate@latest",
      "publish:next": "npm version prerelease && npm publish --tag next",
      "typedoc": "typedoc src/index.ts --excludePrivate --mode file --out ./api --target es6",
      "typedoc:publish": "npm run typedoc && gh-pages --dist ./api --dest ./api",
      "docs:dev": "npm run docs:packages && vuepress dev docs",
      "docs:packages": "cpy 'packages/*/README.md' docs --parents --rename=index.md",
      "docs:build": "npm run docs:packages && vuepress build docs",
      "docs:publish": "npm run docs:build && gh-pages --dist ./docs/.vuepress/dist --dest ./docs && npm run typedoc:publish"
    },
    "repository": {
      "type": "git",
      "url": "git+https://github.com/davidkpiano/xstate.git"
    },
    "author": "David Khourshid <davidkpiano@gmail.com>",
    "license": "MIT",
    "bugs": {
      "url": "https://github.com/davidkpiano/xstate/issues"
    },
    "homepage": "https://github.com/davidkpiano/xstate#readme",
    "devDependencies": {
      "@types/chai": "^4.1.7",
      "@types/core-js": "^2.5.0",
      "@types/mocha": "^2.2.44",
      "@types/node": "^8.10.38",
      "babel-cli": "^6.26.0",
      "babel-core": "^6.26.3",
      "babel-plugin-annotate-pure-calls": "^0.3.0",
      "chai": "^4.2.0",
      "cpy-cli": "^2.0.0",
      "jsdom": "^14.0.0",
      "jsdom-global": "^3.0.2",
      "lerna": "^3.13.1",
      "markdown-it-codesandbox-embed": "^0.1.0",
      "mocha": "^3.5.3",
      "prettier": "^1.15.2",
      "rollup": "^1.4.0",
      "rollup-plugin-filesize": "^4.0.1",
      "rollup-plugin-replace": "^2.1.0",
      "rollup-plugin-terser": "^4.0.4",
      "rollup-plugin-typescript2": "^0.16.1",
      "rollup-plugin-uglify": "^6.0.0",
      "scion-core-test-framework": "^1.0.0",
      "scxml-test-framework": "^1.0.2",
      "ts-node": "^7.0.1",
      "tslint": "^5.11.0",
      "typedoc": "^0.12.0",
      "typescript": "3.3.3333",
      "vuepress": "^0.14.10",
      "webpack-dev-middleware": "^3.6.0",
      "xml-js": "^1.6.8"
    }
  }
  