CN110247794A - The topological graph methods of exhibiting and device of one kind of multiple layout type - Google Patents

The topological graph methods of exhibiting and device of one kind of multiple layout type Download PDF

Info

Publication number
CN110247794A
CN110247794A CN201910458351.XA CN201910458351A CN110247794A CN 110247794 A CN110247794 A CN 110247794A CN 201910458351 A CN201910458351 A CN 201910458351A CN 110247794 A CN110247794 A CN 110247794A
Authority
CN
China
Prior art keywords
topological
topological diagram
diagram
preset
relation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910458351.XA
Other languages
Chinese (zh)
Other versions
CN110247794B (en
Inventor
谢石
杨凡
陈志范
张蒙亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CHINAETEK SERVICE & TECHNOLOGY Co Ltd
Original Assignee
CHINAETEK SERVICE & TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CHINAETEK SERVICE & TECHNOLOGY Co Ltd filed Critical CHINAETEK SERVICE & TECHNOLOGY Co Ltd
Priority to CN201910458351.XA priority Critical patent/CN110247794B/en
Publication of CN110247794A publication Critical patent/CN110247794A/en
Application granted granted Critical
Publication of CN110247794B publication Critical patent/CN110247794B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/26Visual data mining; Browsing structured data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/22Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks comprising specially adapted graphical user interfaces [GUI]

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present invention provides the topological graph methods of exhibiting and device of one kind of multiple layout type, first excavates the first topological diagram for meeting preset topological relation in self-defining data model;The first topological diagram is filtered according to the default topological path of data path algorithm, filters out the second topological diagram;The third topological diagram of the topological relation including belonging to user preset scene is selected from the second topological diagram;By the topological relation in third topological diagram, it is laid out according to the multiple preset patterns selected from customized placement model, obtains tentatively showing topological diagram;It shows that multiple preset patterns in topological diagram separate within the scope of preset plane for preliminary using intelligent algorithm, and obtains final displaying topological diagram and be shown.The present invention can filter out user in huge data topology figure and really want topological relation and in the topological diagram Dynamic Display of most saturation sense picture, it is able to satisfy demand of the user in terms of mass data appreciative value, and greatly shortens to obtain the time of static topology map.

Description

The topological graph methods of exhibiting and device of one kind of multiple layout type
Technical field
The present invention relates to the topological graph methods of exhibiting of field of computer technology more particularly to one kind of multiple layout type and Device.
Background technique
With the popularity of the internet and commercialization, the topological diagram mode localized originally are no longer satisfied huge data System and effective problem, be thus born HTML5 Canvas technology.User can be with using HTML5 Canvas technology When it is cross-platform everywhere, in a browser go draw or modify topological diagram, can by hub-and-spoke configuration, bus structures, go back type structure, The common frame modes such as tree, reticular structure, mixed type topological structure and honeycomb-type structural go that relevant static state is presented Topological diagram shows so that simple data structure be topologized.At present even can be by special algorithm, automatic discovery is opened up It flutters element and is presented on topological diagram, enable users to clearly through topological diagram awareness network structure.
If topological node quantity, within units, its topological diagram can be solved perfectly in above-mentioned common frame mode Show, still, once the quantity of topological node reach double figures it is even more when, due to utilize HTML5 Canvas skill Art drawing topological graph is to be drawn according to topological relation, and cannot consider whether topological diagram is beautiful and easily see, therefore is directly logical The topological diagram for crossing the displaying of HTML5 Canvas technology is extremely complex, has a large amount of overlapping and intersects, needs labor costs a large amount of Time is adjusted, and so that thousands of topological nodes up to a hundred in topological diagram is looked like rule, and layout is that have to watch Property.Meanwhile if user wants in thousands of topological nodes up to a hundred, partial-topology that is special scenes or oneself wanting is found out When node, then these partial-topology nodes can only be dragged to white space and constantly regulate, it could be again by rule and cloth There is the topological diagram of ornamental value to show for office.Also, in the topological diagram after passing through above-mentioned dragging and adjusting, distracter can also compare It is more and layout and unsightly.In addition, user can also draw some sub-scene topological diagrams for special scenes, but need in this way More time is spent, and totally needs the topological diagram quantity safeguarded that can greatly increase, is also unfavorable for the later period extension of topological diagram.
Therefore, topological diagram is directly shown by HTML5 Canvas technology at present, it is extremely complex when topological node is more, It needs to take a significant amount of time by manually pulling adjusting or repainting topological diagram, and manually pulls in the topological diagram after adjusting Interference is also excessive and layout and unsightly, and repainting topological diagram then can totally to need the topological diagram quantity safeguarded increasing Add, the later period of topological diagram is not utilized to extend yet.
Summary of the invention
In order to which the HTML5 Canvas technology that directly passes through for solving current shows topological diagram, there are needs and manually pull adjusting Or the problem of repainting topological diagram, the embodiment of the present invention provide the topological graph methods of exhibiting and dress of one kind of multiple layout type It sets.
In a first aspect, the embodiment of the present invention provides the topological graph methods of exhibiting of one kind of multiple layout type, this method packet It includes: S1, drawing self-defining data model and customized placement model respectively;S2, the first topology is excavated from original data source Figure;First topological diagram meets preset topological relation in self-defining data model;S3, it is opened up using data path algorithm to first It flutters figure to be filtered, and filters out the second topological diagram from the first topological diagram;In second topological diagram, including data path algorithm Default topological path;If S4, the second topological diagram include the topological relation of user preset scene, from the second topological diagram, selection It out include the third topological diagram for belonging to the topological relation of user preset scene;It is multiple pre- in S5, the customized placement model of selection If figure, the topological relation in third topological diagram is laid out according to multiple preset patterns, and obtains preliminary displaying topological diagram; S6, using intelligent algorithm, preliminary will show that multiple preset patterns in topological diagram separate within the scope of preset plane, and obtain most Show that topological diagram is shown eventually.
Second aspect, the topological graph that the embodiment of the present invention provides one kind of multiple layout type show device, the device packet It includes: drawing unit, for drawing self-defining data model and customized placement model respectively;Unit is excavated, is used for from original number According to excavating the first topological diagram in source;First topological diagram meets preset topological relation in self-defining data model;Filtering is single Member for being filtered using data path algorithm to the first topological diagram, and filters out the second topological diagram from the first topological diagram; In second topological diagram, the default topological path including data path algorithm;Selecting unit, if including user for the second topological diagram The topological relation of default scene selects the including the topological relation that belongs to user preset scene then from the second topological diagram Three topological diagrams;Preliminary display unit will be in third topological diagram for selecting multiple preset patterns in customized placement model Topological relation is laid out according to multiple preset patterns, and obtains preliminary displaying topological diagram;Final display unit, for utilizing intelligence Energy algorithm preliminary will show that multiple preset patterns in topological diagram separate within the scope of preset plane, and obtain final displaying and open up Figure is flutterred to be shown.
The third aspect, the embodiment of the present invention provide a kind of electronic equipment, the electronic equipment include: memory, processor and The computer program that can be run on a memory and on a processor is stored, the instruction of processor caller is able to carry out first party The topological graph exhibition of a variety of layout type provided by any possible implementation in the various possible implementations in face Show method.
Fourth aspect, the embodiment of the present invention provide a kind of non-transient computer readable storage medium, are stored thereon with calculating Machine program, the computer program make computer execute any possible realization in the various possible implementations of first aspect The topological graph methods of exhibiting of a variety of layout type provided by mode.
The embodiment of the present invention provides the topological graph methods of exhibiting and device of one kind of multiple layout type, according to user's needs The topological relation of understanding draws self-defining data model, according to the customized layout of the graphic plotting of common figure and user preferences Model;From excavating the first topological diagram for meeting preset topological relation in self-defining data model in original data source;According to The default topological path of data path algorithm is filtered the first topological diagram, filters out the second topological diagram;If the second topological diagram Topological relation including user preset scene is then selected from the second topological diagram and is closed including the topology for belonging to user preset scene The third topological diagram of system;Then multiple according to what is selected from customized placement model by the topological relation in third topological diagram Preset pattern layout, obtains tentatively showing topological diagram;It finally will be multiple default in preliminary displaying topological diagram using intelligent algorithm Figure separates within the scope of preset plane, and obtains final displaying topological diagram and be shown.The embodiment of the present invention can be huge Data topology figure in automatic fitration go out the topological relation that user really wants, and by these topological relations in most saturation sense picture The topological diagram in face carries out Dynamic Display, is able to satisfy demand of the user in terms of mass data appreciative value, and greatly shorten to obtain The time of static topology map improves the displaying efficiency of target topology.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the overall procedure schematic diagram of the topological graph methods of exhibiting of a variety of layout type of the embodiment of the present invention;
Fig. 2 is the idiographic flow schematic diagram of the topological graph methods of exhibiting of a variety of layout type of the embodiment of the present invention;
Fig. 3 (a) is the self-defining data model of the topological graph methods of exhibiting of a variety of layout type of the embodiment of the present invention Basic topology schematic diagram;
Fig. 3 (b) is the Result schematic diagram of the topological graph methods of exhibiting of a variety of layout type of the embodiment of the present invention;
Fig. 3 (c) is the selection result schematic diagram of the topological graph methods of exhibiting of a variety of layout type of the embodiment of the present invention;
Fig. 3 (d) is the preset pattern schematic diagram of the topological graph methods of exhibiting of a variety of layout type of the embodiment of the present invention;
Fig. 3 (e) is the preset pattern schematic diagram of the topological graph methods of exhibiting of a variety of layout type of the embodiment of the present invention;
Fig. 3 (f) is that the preliminary displaying topology of the topological graph methods of exhibiting of a variety of layout type of the embodiment of the present invention is shown It is intended to;
Fig. 3 (g) is that the final displaying topology of the topological graph methods of exhibiting of a variety of layout type of the embodiment of the present invention is shown It is intended to;
Fig. 4 is that the topological graph of a variety of layout type of the embodiment of the present invention shows the structural schematic diagram of device;
Fig. 5 is the structural schematic diagram of the electronic equipment of the embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Currently, due to using HTML5 Canvas technology to drawing topological diagram being drawn according to topological relation, without It can consider whether topological diagram is beautiful easily to see, therefore the topological diagram directly shown by HTML5 Canvas technology is extremely complex, meeting There is a large amount of overlapping and intersect, needs labor costs to be adjusted the plenty of time, can just make thousands of topologys up to a hundred in topological diagram Node looks like rule, and layout has ornamental value.Meanwhile if user wants in thousands of topological nodes up to a hundred In, when finding out partial-topology node special scenes or that oneself is desired, then these partial-topology nodes can only be dragged to sky It white region and constantly regulate, it could be again by rule and there is layout the topological diagram of ornamental value to show.Also, by upper In topological diagram after stating dragging and adjusting, distracter also can relatively more and layout and unsightly.Therefore, directly pass through HTML5 Canvas technology shows topological diagram, there are problems that artificial pull is needed to adjust or repaint topological diagram.
Fig. 1 is the overall procedure schematic diagram of the topological graph methods of exhibiting of a variety of layout type of the embodiment of the present invention, such as Shown in Fig. 1, the embodiment of the present invention provides the topological graph methods of exhibiting of one kind of multiple layout type, this method comprises:
S1, self-defining data model and customized placement model are drawn respectively.
Specifically, in step S1, according to user it should be understood that topological relation draw self-defining data model, customized number According to the basic element in model including class and relationship, class is topological node, line of the relationship between topological node.It will include upper The mode for stating the self-defining data model topological diagram of basic element is drawn out.Meanwhile according to common topological graph and use The topological graph of family hobby draws customized placement model, can select for topological relation to be laid out by customized placement model pre- If figure, preset pattern can be circle, ellipse, rectangle, triangle, pentagon, hexagon etc..
For example, Fig. 3 (a) is the self-defining data of the topological graph methods of exhibiting of a variety of layout type of the embodiment of the present invention The basic topology schematic diagram of model defines server, router and using three as shown in Fig. 3 (a) in self-defining data model There are sequentially connected topological relations for class topological node.
S2, the first topological diagram is excavated from original data source;First topological diagram meets in self-defining data model and presets Topological relation.
Specifically, in step S2, according to the preset topological relation of self-defining data model, i.e., topology section in basic element The relationship of line, meets preset topology in self-defining data model from excavating in original data source between point and topological node First topological diagram of relationship.From the first topological diagram, it can know in original data source and meet that self-defining data model is preset to be opened up Flutter the line between the topological node and topological node of relationship.
For example, the mining process that Fig. 3 (b) is the topological graph methods of exhibiting of a variety of layout type of the embodiment of the present invention shows It is intended to, as shown in Fig. 3 (b), excavating in original data source indicates router, server and application three classes topological node successively First topological diagram of the topological relation of connection.But in the first topological diagram, although knowing server 1, server 2, server 3, router, using 1, using the connection relationship between 2 and application 3, but can not learn that server 1 passes through routing implement body energy Access using 1, using which in 2 or application 3.
S3, the first topological diagram is filtered using data path algorithm, and filters out second from the first topological diagram and opens up Flutter figure;In second topological diagram, the default topological path including data path algorithm.
Specifically, in step S3, data path algorithm is write, a plurality of topological path is preset in data path algorithm, according to Wherein preset topological path is filtered the first topological diagram, and the second topological diagram is filtered out from the first topological diagram.From In two topological diagrams, the topological relation for meeting in the first topological diagram and presetting topological path in data path algorithm can be known.
For example, the selection result that Fig. 3 (c) is the topological graph methods of exhibiting of a variety of layout type of the embodiment of the present invention is shown It is intended to, as shown in Fig. 3 (c), by the topological path of data path algorithm, such as by the way of expression formula: [source server IP- > router (routing table) -> target application IP], finally can from the first topological diagram, based on topological node and topological node it Between line, filter out the second topological diagram, learn that server 2 can be accessed by router using 1 and using 2 respectively.Wherein, multiple Topological node is if it is similar, then filtering makes in the expression formula used, similar topological node can be used alias.
If S4, the second topological diagram include the topological relation of user preset scene, from the second topological diagram, select including Belong to the third topological diagram of the topological relation of user preset scene.
It is understood that user actually merely desires to learn the topological relation of its default scene, and scene is preset at some In, it may only expect the connection relationship between a kind of or a collection of topological node, therefore, it is also desirable to select it in default scene The topological diagram of practical conceivable a kind of or a collection of topological node.
Specifically, in step S4, if the second topological diagram includes the topological relation of user preset scene, from the second topological diagram In further select third topological diagram, third topological diagram includes the topological relation for belonging to user preset scene, i.e. third is opened up Flutterring figure is really the topological diagram for actually expecting a kind of or a collection of topological node that user selects from the second topological diagram.
For example, user only needs to know the topological relation between the router and application of a certain computer room, then in a building Servers-all, need to select the server, router and application of the computer room in the topological relation between router and application Between topological relation, then therefrom select the topological relation between the router of the computer room and application again.Wherein, a building Servers-all, the topological relation between router and application be the first topological diagram, the server of the computer room, router and answer Topological relation between is the second topological diagram, and the topological relation between the router and application of the computer room is third topological diagram.
Multiple preset patterns in S5, the customized placement model of selection, by the topological relation in third topological diagram according to more A preset pattern is laid out, and obtains preliminary displaying topological diagram.
Specifically, it is equipped in step S5, in customized placement model for topological layout, common topological graph or use The topological graph of family hobby, therefore multiple preset patterns are selected from customized placement model, by the topology in third topological diagram Topological relation between node is laid out according to multiple preset patterns of selection, to obtain preliminary displaying topological diagram.
For example, the preset pattern that Fig. 3 (d) is the topological graph methods of exhibiting of a variety of layout type of the embodiment of the present invention shows It is intended to, as shown in Fig. 3 (d), preset pattern is hexagon;Fig. 3 (e) is the topological diagram of a variety of layout type of the embodiment of the present invention The preset pattern schematic diagram of shape methods of exhibiting, as described in Fig. 3 (e), preset pattern is ten hexagons.In addition, Fig. 3 (f) is this hair The topological schematic diagram of the preliminary displaying of the topological graph methods of exhibiting of a variety of layout type of bright embodiment will as shown in Fig. 3 (f) Topological relation arrangement in third topological diagram is two hexagons and ten hexagons, this is preliminary displaying topological diagram.
It should be noted that since customized placement model is only by the topological relation in third topological diagram in its original place Or nearby a certain range is arranged, so that the preliminary displaying topological diagram of multiple preset pattern layouts is formed, it is therefore, preliminary to show The phenomenon that line between topological node or topological node in topological diagram can still have overlapping or intersect.
S6, using intelligent algorithm, preliminary will show that multiple preset patterns in topological diagram separate within the scope of preset plane, And it obtains final displaying topological diagram and is shown.
Specifically, in step S6, intelligent algorithm is write, will be arranged in preliminary displaying topological diagram using intelligent algorithm multiple Preset pattern separates within the scope of preset plane, and preset plane range is to enable multiple preset patterns to be kept completely separate come, do not have The minimum planes range of line overlapping or crossover phenomenon between topological node or topological node, and obtain final displaying topological diagram It is shown.
For example, the final displaying that Fig. 3 (g) is the topological graph methods of exhibiting of a variety of layout type of the embodiment of the present invention is opened up Schematic diagram is flutterred, as shown in Fig. 3 (g), preliminary two hexagons shown in topological diagram and ten hexagons is separated, are made The phenomenon that topological node between any two figure is not overlapped or intersects is obtained, this is final displaying topological diagram.
The embodiment of the present invention provides the topological graph methods of exhibiting of one kind of multiple layout type, according to user it should be understood that Topological relation draws self-defining data model, according to the customized placement model of the graphic plotting of common figure and user preferences; From excavating the first topological diagram for meeting preset topological relation in self-defining data model in original data source;According to data road The default topological path of diameter algorithm is filtered the first topological diagram, filters out the second topological diagram;If the second topological diagram includes using The topological relation of scene is preset at family, then the including the topological relation that belongs to user preset scene is selected from the second topological diagram Three topological diagrams;Then by the topological relation in third topological diagram, according to the multiple default figures selected from customized placement model Shape layout, obtains tentatively showing topological diagram;Finally show that multiple preset patterns in topological diagram exist for preliminary using intelligent algorithm It is separated within the scope of preset plane, and obtains final displaying topological diagram and be shown.The embodiment of the present invention can be in huge data Automatic fitration goes out the topological relation that user really wants, and the opening up in most saturation sense picture by these topological relations in topological diagram It flutters figure and carries out Dynamic Display, be able to satisfy demand of the user in terms of mass data appreciative value, and greatly shorten to obtain static state and open up The time for flutterring figure improves the displaying efficiency of target topology.
Based on the above embodiment, step S3 is specifically included: writing data path algorithm, a plurality of open up is preset in routing algorithm Flutter path;In presetting a plurality of topological path, arbitrary topology path is selected;It is filtered out in the first topological diagram and meets arbitrary topology Second topological structure in path, and the second topological structure is shown with the second topological diagram.
Specifically, a plurality of topological path is preset in data path algorithm, according to the arbitrary topology road in a plurality of topological path Diameter is filtered the first topological diagram based on the relationship of line between topological node and topological node, filters out to meet and arbitrarily open up Flutter second topological diagram in path.It can one or more topological path of simultaneous selection.
Further, step S4 is specifically included: judge the second topological diagram whether include user preset scene topological relation, If including from the second topological diagram, selection belongs to the third topological structure of the topological relation of user preset scene, and by third Topological structure is shown with third topological diagram;Wherein, user preset scene and third topological structure are that user is predetermined; Topological node in third topological structure is a kind of or a batch.
Further, step S5 is specifically included: multiple preset patterns are selected in customized placement model;By third topology Topological relation in figure is shown respectively according to multiple preset patterns, and obtains preliminary displaying topological diagram;Wherein, preset pattern For for the common figure of topological layout or the pre-selected hobby figure of user.
Based on the above embodiment, step S6 is specifically included: intelligent algorithm is utilized, if determining multiple preset patterns same flat After separating on face, the distance between the smallest two o'clock of distance is greater than pre-determined distance in any two preset pattern, multiple pre- If the preset plane range that figure occupies;The preliminary multiple preset patterns shown in topological diagram are divided within the scope of preset plane From, and obtain final displaying topological diagram and show.
Specifically, intelligent algorithm can show that the multiple preset patterns arranged in topological diagram separate in the same plane for preliminary It comes, and the distance between the smallest two o'clock of distance is greater than pre-determined distance in any two preset pattern, so that multiple pre- If there is no overlapping or crossover phenomenons for topological node and line in figure.Meanwhile meeting multiple preset patterns and being put down one by one same Separated on face, and in any two preset pattern the distance between the smallest two o'clock of distance be greater than pre-determined distance range be The shape of preset plane range, preset plane range can be determined according to actual displayed interface, can be rectangle, triangle, circle Shape etc..
Based on the above embodiment, Fig. 2 is the tool of the topological graph methods of exhibiting of a variety of layout type of the embodiment of the present invention Body flow diagram, as shown in Fig. 2, between step S3 and step S4, further includes: if the second topological diagram does not include user preset field The topological relation of scape then repaints self-defining data model in step sl, and continues step S2 and S3;Or in step Data path algorithm is rewritten in S3, and continues step S3.
It specifically, may be that drafting is customized in the middle part of the second topological diagram if including the topological relation of user preset scene It does not include the topological relation of user preset scene when data model;Either when writing data path algorithm, not write in packet The topological path of the topological relation of user preset scene is included, then need to repaint self-defining data model or rewrites path Algorithm, so that including the topological relation of user preset scene in the second topological diagram.
Based on the above embodiment, as shown in Fig. 2, in step S6, if tentatively showing, multiple preset patterns in topological diagram exist It is not separated within the scope of preset plane, then repaints customized placement model in step sl, and continue step S2 to S6.
Specifically, if tentatively showing, multiple preset patterns in topological diagram are not separated within the scope of preset plane, or It is undesirable to separate situation, between multiple preset patterns or the phenomenon that there is overlapping or intersect, then repaints customized layout Model, and continue other steps, to obtain the final displaying topological diagram of saturation that reach expected picture, perfect.
Fig. 4 is that the topological graph of a variety of layout type of the embodiment of the present invention shows the structural schematic diagram of device, such as Fig. 4 institute Show, the embodiment of the present invention provide one kind of multiple layout type topological graph show device, the device include drawing unit 401, Excavate unit 402, filter element 403, selecting unit 404, preliminary display unit 405 and final display unit 406;Wherein:
Drawing unit 401, for drawing self-defining data model and customized placement model respectively.
Specifically, by drawing unit 401 according to user it should be understood that topological relation draw self-defining data model, from The basic element in data model comprising class and relationship is defined, class is topological node, line of the relationship between topological node.It will The mode of self-defining data model topological diagram comprising above-mentioned basic element is drawn out.Meanwhile according to common topological diagram The topological graph of shape and user preferences draws customized placement model, can be selected by customized placement model by topological relation cloth The preset pattern of office.
Unit 402 is excavated, for excavating the first topological diagram from original data source;First topological diagram meets customized Preset topological relation in data model.
Specifically, by excavating unit 402 according to the preset topological relation of self-defining data model, i.e., in basic element The relationship of line between topological node and topological node is preset from excavating to meet in self-defining data model in original data source Topological relation the first topological diagram.From the first topological diagram, it can know in original data source that meet self-defining data model pre- If topological relation topological node and topological node between line.
Filter element 403, for being filtered using data path algorithm to the first topological diagram, and from the first topological diagram Filter out the second topological diagram;In second topological diagram, the default topological path including data path algorithm.
Specifically, data path algorithm is write by filter element 403, a plurality of topological road is preset in data path algorithm Diameter is filtered the first topological diagram according to wherein preset topological path, and the second topology is filtered out from the first topological diagram Figure.From the second topological diagram, the topological relation for meeting in the first topological diagram and presetting topological path in data path algorithm can be known.
Selecting unit 404, if including the topological relation of user preset scene for the second topological diagram, from the second topological diagram In, select the third topological diagram of the topological relation including belonging to user preset scene.
Specifically, if the second topological diagram includes the topological relation of user preset scene, pass through selecting unit 404 from second Third topological diagram is further selected in topological diagram, third topological diagram includes the topological relation for belonging to user preset scene, i.e., Third topological diagram is really the topology for actually expecting a kind of or a collection of topological node that user selects from the second topological diagram Figure.
Preliminary display unit 405 will be in third topological diagram for selecting multiple preset patterns in customized placement model Topological relation be laid out according to multiple preset patterns, and obtain and preliminary show topological diagram.
Specifically, for topological layout, common topological graph or user preferences are equipped in customized placement model Topological graph, therefore multiple preset patterns are selected from customized placement model by preliminary display unit 405, by third topology The topological relation between topological node in figure is laid out according to multiple preset patterns of selection, is opened up to obtain preliminary show Flutter figure.
Final display unit 406, for utilizing intelligent algorithm, by the preliminary multiple preset patterns shown in topological diagram pre- If separation in planar range, and obtain final displaying topological diagram and be shown.
Specifically, intelligent algorithm is write by final display unit 406, using intelligent algorithm, will tentatively shows topological diagram Multiple preset patterns of middle arrangement separate within the scope of preset plane, and preset plane range is that multiple preset patterns is enable to divide completely It leaves, without the minimum planes range of line overlapping or crossover phenomenon between topological node or topological node, and obtains most Show that topological diagram is shown eventually.
The embodiment of the present invention provide one kind of multiple layout type topological graph show device, according to user it should be understood that Topological relation draws self-defining data model, according to the customized placement model of the graphic plotting of common figure and user preferences; From excavating the first topological diagram for meeting preset topological relation in self-defining data model in original data source;According to data road The default topological path of diameter algorithm is filtered the first topological diagram, filters out the second topological diagram;If the second topological diagram includes using The topological relation of scene is preset at family, then the including the topological relation that belongs to user preset scene is selected from the second topological diagram Three topological diagrams;Then by the topological relation in third topological diagram, according to the multiple default figures selected from customized placement model Shape layout, obtains tentatively showing topological diagram;Finally show that multiple preset patterns in topological diagram exist for preliminary using intelligent algorithm It is separated within the scope of preset plane, and obtains final displaying topological diagram and be shown.The embodiment of the present invention can be in huge data Automatic fitration goes out the topological relation that user really wants, and the opening up in most saturation sense picture by these topological relations in topological diagram It flutters figure and carries out Dynamic Display, be able to satisfy demand of the user in terms of mass data appreciative value, and greatly shorten to obtain static state and open up The time for flutterring figure improves the displaying efficiency of target topology.
Fig. 5 is the structural schematic diagram of the electronic equipment of the embodiment of the present invention, as shown in figure 5, the embodiment of the invention provides A kind of electronic equipment, the electronic equipment include: processor (processor) 501, communication interface (Communications Interface) 502, memory (memory) 503 and communication bus 504, wherein processor 501, communication interface 502, storage Device 503 completes mutual communication by communication bus 504.Processor 501 can call on memory 503 and can be in processor The computer program run on 501, to execute the topological graph methods of exhibiting of a variety of layout type of the various embodiments described above offer, For example, S1, self-defining data model and customized placement model are drawn respectively;S2, is excavated from original data source One topological diagram;First topological diagram meets preset topological relation in self-defining data model;S3, data path algorithm pair is utilized First topological diagram is filtered, and the second topological diagram is filtered out from the first topological diagram;In second topological diagram, including data path The default topological path of algorithm;If S4, the second topological diagram include the topological relation of user preset scene, from the second topological diagram In, select the third topological diagram of the topological relation including belonging to user preset scene;In S5, the customized placement model of selection Topological relation in third topological diagram is laid out by multiple preset patterns according to multiple preset patterns, and obtains preliminary show Topological diagram;S6, using intelligent algorithm, preliminary will show that multiple preset patterns in topological diagram separate within the scope of preset plane, And it obtains final displaying topological diagram and is shown.
In addition, the logical order in above-mentioned memory 503 can be realized by way of SFU software functional unit and conduct Independent product when selling or using, can store in a computer readable storage medium.Based on this understanding, originally Substantially the part of the part that contributes to existing technology or the technical solution can be in other words for the technical solution of invention The form of software product embodies, which is stored in a storage medium, including some instructions to So that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation of the present invention The all or part of the steps of example method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read- Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can be with Store the medium of program code.
The embodiment of the present invention also provides a kind of non-transient computer readable storage medium, is stored thereon with computer program, The computer program is implemented to carry out the topological graph of a variety of layout type of the various embodiments described above offer when being executed by processor Methods of exhibiting, for example, S1, draw self-defining data model and customized placement model respectively;S2, from original data source Excavate the first topological diagram;First topological diagram meets preset topological relation in self-defining data model;S3, data road is utilized Diameter algorithm is filtered the first topological diagram, and the second topological diagram is filtered out from the first topological diagram;In second topological diagram, including The default topological path of data path algorithm;If S4, the second topological diagram include the topological relation of user preset scene, from second In topological diagram, the third topological diagram of the topological relation including belonging to user preset scene is selected;S5, the customized layout mould of selection Topological relation in third topological diagram is laid out by multiple preset patterns in type according to multiple preset patterns, and is obtained just Step shows topological diagram;S6, using intelligent algorithm, by the preliminary multiple preset patterns shown in topological diagram within the scope of preset plane Separation, and obtain final displaying topological diagram and be shown.
The embodiments such as electronic equipment described above are only schematical, wherein unit as illustrated by the separation member It may or may not be physically separated, component shown as a unit may or may not be physics list Member, it can it is in one place, or may be distributed over multiple network units.It can be selected according to the actual needs In some or all of the modules achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying creativeness Labour in the case where, it can understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation Certain Part Methods of example or embodiment.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features; And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and Range.

Claims (10)

1. the topological graph methods of exhibiting of one kind of multiple layout type characterized by comprising
S1, self-defining data model and customized placement model are drawn respectively;
S2, the first topological diagram is excavated from original data source;First topological diagram meets in the self-defining data model Preset topological relation;
S3, first topological diagram is filtered using data path algorithm, and filters out from first topological diagram Two topological diagrams;In second topological diagram, the default topological path including the data path algorithm;
If S4, second topological diagram include that the topological relation of user preset scene is selected from second topological diagram Third topological diagram including belonging to the topological relation of the user preset scene;
Multiple preset patterns in S5, the selection customized placement model, the topological relation in the third topological diagram is pressed It is laid out according to the multiple preset pattern, and obtains preliminary displaying topological diagram;
S6, using intelligent algorithm, by it is described it is preliminary show that multiple preset patterns in topological diagram separate within the scope of preset plane, And it obtains final displaying topological diagram and is shown.
2. the topological graph methods of exhibiting of a variety of layout type according to claim 1, which is characterized in that step S3 and step Between rapid S4, further includes:
If second topological diagram does not include the topological relation of user preset scene, described make by oneself is repainted in step sl Adopted data model, and continue step S2 and S3;Or rewrite the data path algorithm in step s3, and continue into Row step S3.
3. the topological graph methods of exhibiting of a variety of layout type according to claim 1, which is characterized in that in step S6, If multiple preset patterns in the preliminary displaying topological diagram do not separate within the scope of preset plane, draw again in step sl The customized placement model is made, and continues step S2 to S6.
4. the topological graph methods of exhibiting of a variety of layout type according to claim 1, which is characterized in that step S3 is specific Include:
The data path algorithm is write, a plurality of topological path is preset in the routing algorithm;
It is preset in a plurality of topological path described, selects arbitrary topology path;It is filtered out in first topological diagram and meets institute Second topological structure in arbitrary topology path is stated, and second topological structure is shown with second topological diagram.
5. the topological graph methods of exhibiting of a variety of layout type according to claim 1, which is characterized in that step S4 is specific Include:
Judge second topological diagram whether include the user preset scene topological relation, if including, from described second In topological diagram, selection belongs to the third topological structure of the topological relation of user preset scene, and the third topological structure is used The third topological diagram is shown;
Wherein, the user preset scene and the third topological structure are that user is predetermined;The third topological structure In topological node be a kind of or a batch.
6. the topological graph methods of exhibiting of a variety of layout type according to claim 1, which is characterized in that step S5 is specific Include:
The multiple preset pattern is selected in the customized placement model;Topological relation in the third topological diagram is pressed It is shown respectively according to the multiple preset pattern, and obtains the preliminary displaying topological diagram;
Wherein, the preset pattern is for the common figure of topological layout or the pre-selected hobby figure of user.
7. the topological graph methods of exhibiting of a variety of layout type according to claim 1, which is characterized in that step S6 is specific Include:
Using the intelligent algorithm, if any two are pre- after determining that the multiple preset pattern separates in the same plane If the distance between the smallest two o'clock of distance is greater than pre-determined distance in figure, the multiple preset pattern is occupied described default flat Face range;
Multiple preset patterns in the preliminary displaying topological diagram are separated within the scope of the preset plane, and acquisition is described most Show that topological diagram is shown eventually.
8. the topological graph of one kind of multiple layout type shows device characterized by comprising
Drawing unit, for drawing self-defining data model and customized placement model respectively;
Unit is excavated, for excavating the first topological diagram from original data source;First topological diagram meets described customized Preset topological relation in data model;
Filter element, for being filtered using data path algorithm to first topological diagram, and from first topological diagram In filter out the second topological diagram;In second topological diagram, the default topological path including the data path algorithm;
Selecting unit, if for second topological diagram including the topological relation of user preset scene, from second topology In figure, the third topological diagram of the topological relation including belonging to the user preset scene is selected;
Preliminary display unit, for selecting multiple preset patterns in the customized placement model, by the third topological diagram In topological relation be laid out according to the multiple preset pattern, and obtain and preliminary show topological diagram;
Final display unit, for utilizing intelligent algorithm, by the preliminary multiple preset patterns shown in topological diagram default Separation in planar range, and obtain final displaying topological diagram and be shown.
9. a kind of electronic equipment, comprising: memory, processor and storage are on a memory and the calculating that can run on a processor Machine program, which is characterized in that the processor realizes a variety of cloth as described in any one of claim 1 to 7 when executing described program The topological graph methods of exhibiting of office's mode.
10. a kind of non-transient computer readable storage medium, is stored thereon with computer program, which is characterized in that the calculating The topological graph displaying side of a variety of layout type as described in any one of claim 1 to 7 is realized when machine program is executed by processor Method.
CN201910458351.XA 2019-05-29 2019-05-29 Topological graph display method and device in multiple layout modes Active CN110247794B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910458351.XA CN110247794B (en) 2019-05-29 2019-05-29 Topological graph display method and device in multiple layout modes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910458351.XA CN110247794B (en) 2019-05-29 2019-05-29 Topological graph display method and device in multiple layout modes

Publications (2)

Publication Number Publication Date
CN110247794A true CN110247794A (en) 2019-09-17
CN110247794B CN110247794B (en) 2020-07-31

Family

ID=67885494

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910458351.XA Active CN110247794B (en) 2019-05-29 2019-05-29 Topological graph display method and device in multiple layout modes

Country Status (1)

Country Link
CN (1) CN110247794B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111967113A (en) * 2020-08-13 2020-11-20 苏州浪潮智能科技有限公司 Cloud platform node topological graph layout method and device
CN112612846A (en) * 2020-12-23 2021-04-06 厦门市美亚柏科信息股份有限公司 Association relation visualization method and terminal
CN114070741A (en) * 2020-07-28 2022-02-18 中移(苏州)软件技术有限公司 Topological graph generation method, system, equipment and storage medium
US20230119064A1 (en) * 2021-10-14 2023-04-20 Red Hat, Inc. Undeployed topology visualization for improving software application development

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102006193A (en) * 2010-11-29 2011-04-06 深圳市新格林耐特通信技术有限公司 Automatic layout method for network topology in SNMP (simple network management protocol) network management system
CN106330572A (en) * 2016-10-08 2017-01-11 烽火通信科技股份有限公司 Static tunnel rapid configuration method and system based on node group related topology
CN107453911A (en) * 2017-08-09 2017-12-08 武汉微创光电股份有限公司 A kind of method of automated topology arrangement
CN107463413A (en) * 2017-08-21 2017-12-12 郑州云海信息技术有限公司 A kind of nodal information display methods and device
CN109086499A (en) * 2018-07-17 2018-12-25 珠海许继电气有限公司 A kind of topological automatic mapping method of the configuration of distribution FA on the spot
US20180375736A1 (en) * 2017-06-27 2018-12-27 Amazon Technologies, Inc. Model and filter deployment across iot networks
CN109167686A (en) * 2018-08-28 2019-01-08 中国科学院电子学研究所苏州研究院 A kind of layout based on multilayer complex network topologies and show method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102006193A (en) * 2010-11-29 2011-04-06 深圳市新格林耐特通信技术有限公司 Automatic layout method for network topology in SNMP (simple network management protocol) network management system
CN106330572A (en) * 2016-10-08 2017-01-11 烽火通信科技股份有限公司 Static tunnel rapid configuration method and system based on node group related topology
US20180375736A1 (en) * 2017-06-27 2018-12-27 Amazon Technologies, Inc. Model and filter deployment across iot networks
CN107453911A (en) * 2017-08-09 2017-12-08 武汉微创光电股份有限公司 A kind of method of automated topology arrangement
CN107463413A (en) * 2017-08-21 2017-12-12 郑州云海信息技术有限公司 A kind of nodal information display methods and device
CN109086499A (en) * 2018-07-17 2018-12-25 珠海许继电气有限公司 A kind of topological automatic mapping method of the configuration of distribution FA on the spot
CN109167686A (en) * 2018-08-28 2019-01-08 中国科学院电子学研究所苏州研究院 A kind of layout based on multilayer complex network topologies and show method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114070741A (en) * 2020-07-28 2022-02-18 中移(苏州)软件技术有限公司 Topological graph generation method, system, equipment and storage medium
CN114070741B (en) * 2020-07-28 2024-01-26 中移(苏州)软件技术有限公司 Topology graph generation method, system, equipment and storage medium
CN111967113A (en) * 2020-08-13 2020-11-20 苏州浪潮智能科技有限公司 Cloud platform node topological graph layout method and device
CN111967113B (en) * 2020-08-13 2022-08-05 苏州浪潮智能科技有限公司 Cloud platform node topological graph layout method and device
CN112612846A (en) * 2020-12-23 2021-04-06 厦门市美亚柏科信息股份有限公司 Association relation visualization method and terminal
CN112612846B (en) * 2020-12-23 2022-07-26 厦门市美亚柏科信息股份有限公司 Method and terminal for visualizing association relationship
US20230119064A1 (en) * 2021-10-14 2023-04-20 Red Hat, Inc. Undeployed topology visualization for improving software application development
US12045584B2 (en) * 2021-10-14 2024-07-23 Red Hat, Inc. Undeployed topology visualization for improving software application development

Also Published As

Publication number Publication date
CN110247794B (en) 2020-07-31

Similar Documents

Publication Publication Date Title
CN110247794A (en) The topological graph methods of exhibiting and device of one kind of multiple layout type
CN102394778B (en) The display methods and device of network topology
CN108052365A (en) The component generation method and device of user interface
CN102156999B (en) Generation method and device thereof for user interface
CN102938863B (en) Intelligent television icon theme replacement method based on android system and device
CN105204927B (en) For the application collating unit of terminal device and using aligning method
CN109324722B (en) Method, device and equipment for adding nodes of thought guide graph and storage medium
CN105184584A (en) Virtual fitting system and method
JP2018531635A (en) Virtual area creation and manipulation
CN102662664A (en) Interface animation realization method and system
CN105205857A (en) Full-three-dimension house design system and method
CN109684590A (en) A kind of browsing device net page data sharing method and device
CN107019913B (en) Object generation method and device
CN110442817A (en) A kind of development system and production method of web-based mixed reality
CN109731332A (en) Control method, device, equipment and the storage medium of non-player role
US20170287201A1 (en) Texture generation system
CN110197525A (en) Window lamp light control method, device, processor and the terminal of Virtual Building model
CN107463413A (en) A kind of nodal information display methods and device
CN106251382A (en) The switching of picture style, camera render the realization method and system updated with theme
CN110928397A (en) User interface refreshing method and device, storage medium and electronic device
CN108989872A (en) A kind of Android TV background fast switch over method, frame, server and storage medium
CN108416149A (en) The real-time formative method of 3 d part unrelated CAD, terminal and storage medium
CN107908454A (en) A kind of interlock method and device of the multiwindow packet based on more bookmarks
CN113468261B (en) Method and system for constructing entity relationship of Internet of things based on graphic editing engine
CN108345623A (en) Data processing method and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant