• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

LearnLib / automatalib / 6668764019

27 Oct 2023 02:48PM UTC coverage: 89.69% (+0.007%) from 89.683%
6668764019

push

github

mtf90
cleanup (Idefinite)Graph interfaces

22 of 22 new or added lines in 10 files covered. (100.0%)

15832 of 17652 relevant lines covered (89.69%)

1.66 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/api/src/main/java/net/automatalib/graph/helper/IndefiniteNormalGraphView.java
1
/* Copyright (C) 2013-2023 TU Dortmund
2
 * This file is part of AutomataLib, http://www.automatalib.net/.
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 *     http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16
package net.automatalib.graph.helper;
17

18
import java.util.Iterator;
19

20
import net.automatalib.common.util.mapping.MutableMapping;
21
import net.automatalib.graph.IndefiniteGraph;
22
import net.automatalib.graph.IndefiniteSimpleGraph;
23
import org.checkerframework.checker.nullness.qual.Nullable;
24

25
public class IndefiniteNormalGraphView<N, G extends IndefiniteSimpleGraph<N>> implements IndefiniteGraph<N, N> {
26

27
    protected final G simpleGraph;
28

29
    public IndefiniteNormalGraphView(G simpleGraph) {
×
30
        this.simpleGraph = simpleGraph;
×
31
    }
×
32

33
    @Override
34
    public Iterator<N> getOutgoingEdgesIterator(N node) {
35
        return simpleGraph.getAdjacentTargetsIterator(node);
×
36
    }
37

38
    @Override
39
    public N getTarget(N edge) {
40
        return edge;
×
41
    }
42

43
    @Override
44
    public boolean isConnected(N source, N target) {
45
        return simpleGraph.isConnected(source, target);
×
46
    }
47

48
    @Override
49
    public <@Nullable V> MutableMapping<N, V> createStaticNodeMapping() {
50
        return simpleGraph.createStaticNodeMapping();
×
51
    }
52

53
    @Override
54
    public <@Nullable V> MutableMapping<N, V> createDynamicNodeMapping() {
55
        return simpleGraph.createDynamicNodeMapping();
×
56
    }
57
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc