Spatial graphs with local knots