public ImportExportService(
     IGraphManager graphManager,
     ISimpleSerializer simpleSerializer)
 {
     _graphManager = graphManager;
     _simpleSerializer = simpleSerializer;
 }
 protected AssociativyControllerBase(
     IAssociativyServices associativyServices)
 {
     _associativyServices = associativyServices;
     _graphManager = associativyServices.GraphManager;
     _graphEditor = associativyServices.GraphEditor;
 }
        public AssociativyTagNodesPartHandler(IGraphManager graphManager)
        {
            OnActivated<AssociativyTagNodesPart>((context, part) =>
            {
                part.ConnectedTagNodesField.Loader(() =>
                    {
                        var graphs = graphManager.FindGraphs(new GraphContext { ContentTypes = new[] { "TagNode", context.ContentType } });
                        var kvps = new List<KeyValuePair<IGraph, IEnumerable<IContent>>>();

                        foreach (var graph in graphs)
                        {
                            var items = context.ContentItem.ContentManager
                                .Query("TagNode")
                                .ForContentItems(graph.Services.ConnectionManager.GetNeighbourIds(context.ContentItem.Id))
                                .Join<AssociativyNodeLabelPartRecord>()
                                .List<IContent>();

                            kvps.Add(new KeyValuePair<IGraph, IEnumerable<IContent>>(graph, items));
                        }

                        return kvps;
                    });

                part.TagNodeListingProjectionField.Loader(() => context.ContentItem.ContentManager.Get(part.Settings.GetModel<AssociativyTagNodesTypePartSettings>().ProjectionId));
            });
        }
Пример #4
0
 public ConfigManager(IDataStore dataStore, IGraphManager graphManager, IPluginManager pluginManager, IConsole console)
 {
     _dataStore     = dataStore;
     _graphManager  = graphManager;
     _pluginManager = pluginManager;
     _console       = console;
 }
Пример #5
0
 public AdminController(IGraphManager graphManager,
                        IStudentManager studentManager,
                        IPsychologistManager psychologistManager)
 {
     _graphManager        = graphManager;
     _studentManager      = studentManager;
     _psychologistManager = psychologistManager;
 }
        public AdminController(IAuthorizer authorizer, IGraphManager graphManager, INotifier notifier)
        {
            _authorizer = authorizer;
            _graphManager = graphManager;
            _notifier = notifier;

            T = NullLocalizer.Instance;
        }
Пример #7
0
 public MainWindowViewModel(IViewModelFactory viewModelFactory,
                            IGraphManager graphManager,
                            ISettingsManager <Settings> settingsManager)
 {
     m_ViewModelFactory = viewModelFactory;
     m_GraphManager     = graphManager;
     m_SettingsManager  = settingsManager;
 }
 public AssociativyServices(
     IGraphManager graphManager,
     IGraphEditor graphEditor,
     IQueryableGraphFactory queryableGraphFactory)
 {
     _graphManager = graphManager;
     _graphEditor = graphEditor;
     _queryableGraphFactory = queryableGraphFactory;
 }
Пример #9
0
        public BasicBlockGraph(IGraphManager <BasicBlock <T> > graphManager, Graph <T> sourceGraph) : this(graphManager)
        {
            SourceGraph   = sourceGraph;
            _blockMapping = new Dictionary <GraphNode <T>, GraphNode <BasicBlock <T> > >();

            LoadGraph(sourceGraph);

            // TODO: Remove old binding
            SourceGraph.CollectionPropertyChanged += _graph_CollectionPropertyChanged;
        }
Пример #10
0
 public Session(IScriptRunner runner, IConsole console, IGraphManager graphManager, IGatherManager gatherManager, IDataStore dataStore, IFileSystem fileSystem, IConfigManager configManager, IEnvironmentHelper environmentHelper)
 {
     _runner            = runner;
     _console           = console;
     _graphManager      = graphManager;
     _gatherManager     = gatherManager;
     _dataStore         = dataStore;
     _fileSystem        = fileSystem;
     _configManager     = configManager;
     _environmentHelper = environmentHelper;
 }
        public AdminController(
            IOrchardServices orchardServices,
            IGraphManager graphManager,
            IUpdateQueueManager updaterService)
        {
            _orchardServices = orchardServices;
            _contentManager = orchardServices.ContentManager;
            _graphManager = graphManager;
            _updaterService = updaterService;

            T = NullLocalizer.Instance;
        }
Пример #12
0
 public NodeIndexingService(
     IIndexManager indexManager,
     IIndexingService indexingService,
     IGraphManager graphManager,
     IContentManager contentManager,
     IContentDefinitionManager contentDefinitionManager)
 {
     _indexManager = indexManager;
     _indexingService = indexingService;
     _graphManager = graphManager;
     _contentManager = contentManager;
     _contentDefinitionManager = contentDefinitionManager;
 }
        public IndexingNotSetUpBanner(
            INodeIndexingService indexingService,
            IGraphManager graphManager,
            IWorkContextAccessor wca,
            IShapeFactory shapeFactory)
        {
            _indexingService = indexingService;
            _graphManager = graphManager;
            _wca = wca;
            _shapeFactory = shapeFactory;

            T = NullLocalizer.Instance;
        }
Пример #14
0
        public Graph(IGraphManager <T> graphManager)
        {
            GraphManager = graphManager;

            Nodes = new GraphNodeCollection <T>(this);
            Nodes.CollectionChanged += Nodes_CollectionChanged;

            Edges = new GraphEdgeCollection <T>(this);
            Edges.CollectionChanged += Edges_CollectionChanged;

            RootNodes = new GraphNodeCollection <T>(this);
            RootNodes.CollectionChanged += (sender, e) => VulcanOnCollectionPropertyChanged("RootNodes", e);

            LeafNodes = new GraphNodeCollection <T>(this);
            LeafNodes.CollectionChanged += (sender, e) => VulcanOnCollectionPropertyChanged("LeafNodes", e);
        }
        public void GivenIHaveAGraphManagerWithNumberOfNodes(string typeName, int n)
        {
            //HACK: may want to improve on this later, string to type mapping is messy
            switch (typeName)
            {
                case "QuickFindGraphManager":
                    _gm = new QuickFindGraphManager(n);
                    break;

                case "QuickWeigthedUnionGraphManager":
                    _gm = new QuickWeightedUnionGraphManager(n);
                    break;

                default:
                    throw new Exception("Graph Manager Type Unknown, cannot create");
            }
        }
Пример #16
0
        private void ShowGraph()
        {
            if (!_isInitialized)
            {
                return;
            }

            object         item            = GraphCombo.SelectedItem;
            bool           vertexNeighbors = (bool)VertexNeighbors.IsChecked;
            RegularPolygon polygon         = null;

            if (item == SquareEdgeGraph)
            {
                polygon = new RegularPolygon(24, 4, PolygonOrientation.OnEdge, vertexNeighbors);
            }
            else if (item == SquareVertexGraph)
            {
                polygon = new RegularPolygon(24, 4, PolygonOrientation.OnVertex, vertexNeighbors);
            }
            else if (item == HexagonEdgeGraph)
            {
                polygon = new RegularPolygon(16, 6, PolygonOrientation.OnEdge);
            }
            else if (item == HexagonVertexGraph)
            {
                polygon = new RegularPolygon(16, 6, PolygonOrientation.OnVertex);
            }

            if (polygon == null)
            {
                _manager = GraphManager <PointD> .CreateSubdivisionManager(this);

                VertexNeighbors.IsEnabled = false;
            }
            else
            {
                _manager = GraphManager <PointI> .CreatePolygonGridManager(this, polygon);

                VertexNeighbors.IsEnabled = (polygon.Sides == 4);
            }

            OutputBox.Children.Clear();
            OutputBox.Children.Add(_manager.Renderer);
            ShowAlgorithm(true);
        }
 public InternalLinksExtractor(
     IGraphManager graphManager,
     IContentManager contentManager,
     ISiteService siteService,
     IJobManager jobManager,
     IAliasService aliasService,
     IScheduledTaskManager scheduledTaskManager,
     IClock clock,
     IGraphSettingsService settingsService)
 {
     _graphManager = graphManager;
     _contentManager = contentManager;
     _siteService = siteService;
     _jobManager = jobManager;
     _aliasService = aliasService;
     _scheduledTaskManager = scheduledTaskManager;
     _clock = clock;
     _settingsService = settingsService;
 }
Пример #18
0
        public void InitializeGraphManager()
        {
            var size = (_dimension * _dimension);

            //Initialize open status array
            _squareOpenStatus = new bool[size];

            //Total Node size is dimension squared plus two helper nodes for top and bottom rows
            _graphManager  = _createGraphManager(size + 2);
            _capNodeIndex  = size;
            _baseNodeIndex = size + 1;

            //Connect the top and bottom row to the extra elements
            //This will allow easy percolation test
            var bottomRowStartIndex = _dimension * (_dimension - 1);

            for (var i = 0; i < _dimension; ++i)
            {
                //Top row
                _graphManager.ConnectNodes(_capNodeIndex, i);
                //Bottom row
                _graphManager.ConnectNodes(_baseNodeIndex, bottomRowStartIndex + 1);
            }
        }
        public NeighboursFilter(IGraphManager graphManager)
        {
            _graphManager = graphManager;

            T = NullLocalizer.Instance;
        }
Пример #20
0
 public GraphController(IGraphManager graphManager,
                        IInputManager ortakManager)
 {
     _graphManager = graphManager;
     _inputManager = ortakManager;
 }
Пример #21
0
 public AdminMenu(IGraphManager graphManager)
 {
     _graphManager = graphManager;
 }
Пример #22
0
 public GatherManager(IGraphManager graphManager, IPluginManager pluginManager)
 {
     _graphManager  = graphManager;
     _pluginManager = pluginManager;
 }
Пример #23
0
        public SearchFilterForm(IShapeFactory shapeFactory, IGraphManager graphManager)
        {
            _shapeFactory = shapeFactory;
            _graphManager = graphManager;

            T = NullLocalizer.Instance;
        }
 public ConnectionsController(IGraphManager graphManager, IContentManager contentManager)
 {
     _graphManager = graphManager;
     _contentManager = contentManager;
 }
 public SettingsHooks(IGraphManager graphManager)
 {
     _graphManager = graphManager;
 }
 public FrontendContextSettingFilter(IGraphManager graphManager)
 {
     _graphManager = graphManager;
 }
Пример #27
0
 public BasicBlockGraph(IGraphManager <BasicBlock <T> > graphManager) : base(graphManager)
 {
 }
 public FrontendConfigurationHandler(IGraphManager graphManager)
 {
     _graphManager = graphManager;
 }
Пример #29
0
 public GraphController(IGraphManager graphManager,
                        ICommonManager commonManager)
 {
     _graphManager  = graphManager;
     _commonManager = commonManager;
 }
 public DefaultAdminPageHandler(IHttpContextAccessor hca, IGraphManager graphManager)
 {
     _hca = hca;
     _graphManager = graphManager;
 }
Пример #31
0
 public MostBoughtItemsGraphDataController(IAuthenticationService authenticationService, IGraphManager graphManager)
 {
     _authenticationService = authenticationService;
     _graphManager          = graphManager;
 }
Пример #32
0
 public AverageStorePriceGraphDataController(IAuthenticationService authenticationService, IGraphManager graphManager)
 {
     _authenticationService = authenticationService;
     _graphManager          = graphManager;
 }
Пример #33
0
 public WeekVisitsGraphDataController(IAuthenticationService authenticationService, IGraphManager graphManager)
 {
     _authenticationService = authenticationService;
     _graphManager          = graphManager;
 }
Пример #34
0
 public ShopItemCountGraphDataController(IAuthenticationService authenticationService, IGraphManager graphManager)
 {
     _authenticationService = authenticationService;
     _graphManager          = graphManager;
 }