Unhardcode "/w" from the path to api.php (for non-Wikimedia wikis)
Unhardcode "/w" from the path to api.php (for non-Wikimedia wikis)

/w/api.php is only correct if $wgScriptPath = "/w".
Non-Wikimedia wikis can have a different value here.

Library "mw-graph-shared" will be modified to use provided "scriptPath"
key in the options.

Bug: T297337
Change-Id: I3ab3e78f548dfcdd581cdd176e068d802b5b3d91

wikimedia/mediawiki-extensions-Graph,wikimedia/mediawiki-extensions-Graph