Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Eclipse Layout Kernel » [ELK] Does ELK support this feature an edge out goes and in comes to the same port?
[ELK] Does ELK support this feature an edge out goes and in comes to the same port? [message #1795178] Tue, 18 September 2018 01:56 Go to next message
lee lucky is currently offline lee luckyFriend
Messages: 26
Registered: October 2017
Junior Member
I am using layered algorithm to layout my diagram, and in my diagram, I have this kind of edge whose source port and target port is the same one. I met this exception:
 org.eclipse.elk.core.UnsupportedConfigurationException: Node '0' has its layer constraint set to FIRST_SEPARATE, but has at least one incoming edge. FIRST_SEPARATE nodes must not have incoming edges.
	at org.eclipse.elk.alg.layered.crn.intermediate.LayerConstraintProcessor.throwUpUnlessNoIncoming(
	at org.eclipse.elk.alg.layered.crn.intermediate.LayerConstraintProcessor.process(
	at org.eclipse.elk.alg.layered.crn.KlayLayered.hierarchicalLayout(
	at org.eclipse.elk.alg.layered.crn.KlayLayered.doCompoundLayout(
	at org.eclipse.elk.alg.layered.crn.LayeredLayoutProvider.layout(
	at org.eclipse.elk.core.RecursiveGraphLayoutEngine.layoutRecursively(
	at org.eclipse.elk.core.RecursiveGraphLayoutEngine.layout(
	at org.eclipse.sirius.diagram.elk.ElkDiagramLayoutConnector.layout(
	at org.eclipse.sirius.diagram.elk.ELKLayoutNodeProvider.layoutEditParts(
	at org.eclipse.gmf.runtime.common.core.service.ExecutionStrategy$1.execute(
	at org.eclipse.gmf.runtime.common.core.service.Service.execute(
	at org.eclipse.gmf.runtime.diagram.ui.commands.ArrangeCommand.getCommandForExecution(
	at org.eclipse.gmf.runtime.diagram.ui.commands.ArrangeCommand.doExecuteWithResult(
	at org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand.doExecute(
	at org.eclipse.emf.workspace.AbstractEMFOperation.execute(
	at org.eclipse.gmf.runtime.common.core.command.CompositeCommand.doExecuteWithResult(
	at org.eclipse.gmf.runtime.common.core.command.AbstractCommand.execute(
	at org.eclipse.gmf.runtime.common.core.command.CompositeCommand.doExecuteWithResult(
	at org.eclipse.gmf.runtime.common.core.command.AbstractCommand.execute(
	at org.eclipse.core.commands.operations.DefaultOperationHistory.execute(
	... 39 more

I have a question, doesn't ELK support this kind of edge?
Hope for ypur reply, and thanks in advance.
Re: [ELK] Does ELK support this feature an edge out goes and in comes to the same port? [message #1795192 is a reply to message #1795178] Tue, 18 September 2018 08:11 Go to previous message
Christoph Daniel Schulze is currently offline Christoph Daniel SchulzeFriend
Messages: 98
Registered: September 2015

ELK Layered probably won't mind, but the results won't be satisfactory. Routing such an edge would require special handling, which we don't currently have (feel free to open a feature request at our GitHub page).

I can think of two possible reasons for your particular error message. First, youu're setting the layer constraint option on one of your nodes, but don't make sure that edge connections fit the setting you're using (FIRST and FIRST_SEPARATE require that no edge enters the node the option is set on). Second, and more likely, you're routing an edge from a port to the same port on a node that itself contains further nodes.

The former case is simply not supported. The second case probably shouldn't raise the error, but would require said feature request to be implemented for proper support.

Previous Topic:'UnsupportedConfigurationException' after closing alg.layered.
Next Topic:Simple Java Application
Goto Forum:

Current Time: Fri Dec 01 10:25:38 GMT 2023

Powered by FUDForum. Page generated in 0.02297 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top